The ATG assembler also includes two Ant tasks to simplify invoking the assembler within ant.
CreateUnpackedEarTask
build an unpacked/exploded EAR filePackEarFileTask
archives an unpacked/exploded EAR file
See Invoking the Application Assembler Through an Ant Task in the ATG Programming Guide for information.
A generic Ant build and configuration file handles:
Archiving your project’s classes (
classes.jar
).Note: It does not compile your classes.
Archiving your Web project from its WSAD workspace location and placing it within your module’s J2EE structure.
Invoking the
CreateUnpackedEarTask
with thestandalone
,omitLicenses
andadminConsole
options.Invoking the
PackEarFileTask
.
To copy, configure and run the ant build files:
Place the
build.xml
andbuild.conf
in your module root (<ATG2007.3dir>/HelloWorld
).Open the
build.conf
file.Modify the properties to match your project, module, ear, and war settings. You should not need to modify
build.xml
unless you want to add functionality.Open a command prompt and navigate to your module root.
Type
ant
assemble.ear
or simplyant
(assemble.ear
is the default task).