ANT generation

 

Introduction to ANT generation

In Objecteering, you can create an artifact stereotyped <<jarFile>>, representing the jar file.  From this artifact, you can then create a manifestation link to packages embedded within your jar file, before launching various commands, as shown in Figures 20, 21 and 22.

 

 

Creating a jar file

We are now going to create the artifact representing the jar file, as shown in Figure 20.

 

Figure 20. Creating the artifact representing the jar file

 

Steps:

1.      Select the root package.

2.      Click on the icon.

3.      The new artifact representing your jar file then appears.

 

 

Creating a manifestation link

The next step is to create a manifestation link from the "JarFile" artifact to the "Bank" package, as shown in Figure 21.

 

Figure 21. Creating a manifestation link from your jar file to the "Bank" package

 

Steps:

1.      Select your jar file.

2.      Click on the  icon in the "Auxiliary properties" tab of the auxiliary window.  The "Manifestation" window then appears.

3.      Drag the "Bank" package from the explorer into the "Manifested element" field.

 

 

Generating the ANT file

We are now going to launch the generation of the ANT file, as shown in Figure 22.

 

Figure 22. Running ANT file generation

 

Steps:

1.      Right-click on the jar file in the explorer to open the context menu.

2.      Run the "MDA Components/Java Developer/Generate ant file" command.

 

The "build.xml" file is then generated in the Java genroot directory.