I am experimenting with switching our existing ANT based build for Visual COBOL to the new support for maven. in our ANT based build we use the mfjarprogmap utility. Does anyone know how to get the maven build to include a calll to this utility ?
I am experimenting with switching our existing ANT based build for Visual COBOL to the new support for maven. in our ANT based build we use the mfjarprogmap utility. Does anyone know how to get the maven build to include a calll to this utility ?
Can you provide us more information?
What is ANT?
What is MFJARPROGMAP-Utility? (may be Java?)
What is maven?
In the Visual Cobol documentation you can find any information and examples to do this!
Compiling and Calling JVM COBOL Applications as Part of a Package
Without the Java property file generated by this utility, the run-time system cannot locate programs when called if they are compiled as part of a package; that is, compiled with the ILNAMESPACE Compiler directive. The property file contains a list of programs, and maps them to their packaged locations.
You can configure the run-time system to locate this Java property file by ensuring it is on the CLASSPATH (as shown in example 1), or by calling the .jar file that contains it directly from COBOL (as shown in example 2).
For full syntax available in the production of the Java property file, refer to Producing a Java Property File.
Can you provide us more information?
What is ANT?
What is MFJARPROGMAP-Utility? (may be Java?)
What is maven?
In the Visual Cobol documentation you can find any information and examples to do this!
Compiling and Calling JVM COBOL Applications as Part of a Package
Without the Java property file generated by this utility, the run-time system cannot locate programs when called if they are compiled as part of a package; that is, compiled with the ILNAMESPACE Compiler directive. The property file contains a list of programs, and maps them to their packaged locations.
You can configure the run-time system to locate this Java property file by ensuring it is on the CLASSPATH (as shown in example 1), or by calling the .jar file that contains it directly from COBOL (as shown in example 2).
For full syntax available in the production of the Java property file, refer to Producing a Java Property File.
Can you provide us more information?
What is ANT?
What is MFJARPROGMAP-Utility? (may be Java?)
What is maven?
[/quote]
You can find information about ant/maven (and others) by using google.com and with the "define: keyword keyword,," it gives you help for example:
define:ant computing
define:maven computing
Can you provide us more information?
What is ANT?
What is MFJARPROGMAP-Utility? (may be Java?)
What is maven?
[/quote]
You can find information about ant/maven (and others) by using google.com and with the "define: keyword keyword,," it gives you help for example:
define:ant computing
define:maven computing
Google is now to old and sick! Mr Google need more CHAPGPT...
Can you provide us more information?
What is ANT?
What is MFJARPROGMAP-Utility? (may be Java?)
What is maven?
In the Visual Cobol documentation you can find any information and examples to do this!
Compiling and Calling JVM COBOL Applications as Part of a Package
Without the Java property file generated by this utility, the run-time system cannot locate programs when called if they are compiled as part of a package; that is, compiled with the ILNAMESPACE Compiler directive. The property file contains a list of programs, and maps them to their packaged locations.
You can configure the run-time system to locate this Java property file by ensuring it is on the CLASSPATH (as shown in example 1), or by calling the .jar file that contains it directly from COBOL (as shown in example 2).
For full syntax available in the production of the Java property file, refer to Producing a Java Property File.
My colleague Sezgin recommends you to use an external command, for example:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>mfjarprogmap</id>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<exec executable="cmd" dir="${project.build.outputDirectory}">
<arg value="/c" />
<arg value="mfjarprogmap -verbose -directory ${project.build.outputDirectory}" />
</exec>
</target>
</configuration>
</execution>
</executions>
</plugin>
That maven plugin will be executed just before creating the final jar file, thus the mfcobolprogmap.properties file will added to the final jar at the maven package phase
The execution of the ant-run plugin could be attached at any phase between maven's compile and package phases
in this particular case the execution is attached to prepare-package phase
The execution assumes COBOL environment is set and mfjarprogmap is accessible on the path
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.