The ATG assembler also includes two Ant tasks to simplify invoking the assembler within ant.
CreateUnpackedEarTaskbuild an unpacked/exploded EAR filePackEarFileTaskarchives 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
CreateUnpackedEarTaskwith thestandalone,omitLicensesandadminConsoleoptions.Invoking the
PackEarFileTask.
To copy, configure and run the ant build files:
Place the
build.xmlandbuild.confin your module root (<ATG9dir>/HelloWorld).Open the
build.conffile.Modify the properties to match your project, module, ear, and war settings. You should not need to modify
build.xmlunless you want to add functionality.Open a command prompt and navigate to your module root.
Type
antassemble.earor simplyant(assemble.earis the default task).

