Class: atg.appassembly.ant.CreateUnpackedEarTask
Description
This Ant task invokes the application assembler, which combines ATG platform libraries, Nucleus component configuration, J2EE applications, and J2EE application components to create a single J2EE application, in the form of an unpacked (open-directory) EAR file.
Task Parameters
Attribute | Description | Required? |
---|---|---|
| Specifies the path to the ATG installation directory | Yes |
| Specifies the Dynamo modules to include in the EAR file, as a comma-delimited string | Yes |
| Specifies the path of the EAR file to be created | Yes |
| If | No; default is |
| If | No; default is |
| Specifies an existing EAR file whose contents will be added to the assembled EAR file. | No |
| If set, specifies the Dynamo server (for | No |
| Specifies a Java properties file to be used to override the context-root values for any web applications included in the assembled EAR file. In this properties file, each line has the format:
This assigns the specified context root to the web application indicated by the module URI. | No |
| Specifies a file that supplies Dynamo environment properties to be added to | No |
| If | No; default is |
| If | No; default is |
| Specifies the X Window System variable declaring where any X display should be sent. (e.g., | No |
| Specifies the value to be used for the | No |
| Includes the comma separated list of jar files on the classpath. This attribute is useful for applying hotfixes. For example:
Note: Special characters appearing in jar file names may cause that file to be ignored. When naming files, it is best to use only alphanumeric characters and the underscore. | No |
Example
To use CreateUnpackedEarTask
in an Ant buildfile, you must first declare it, using the taskdef
element:
<taskdef name="assemble-jar"
classname="atg.appassembly.ant.CreateUnpackedEarTask"
classpath="C:/ATG2007.3/home/lib/assembler.jar">
You can then create a target that assembles an ATG application EAR file:
<target name="create-quincy-ear"> <-- It's a good idea to delete any old directories before assembling... --> <delete dir="QuincyFundsEar"/> <assemble-jar dynamoRoot="c:/ATG/ATG2007.3 " dynamoModules="DSSJ2EEDemo,DafEar.Admin" destinationFile="QuincyFundsEar" overwrite="true" /> </target>