Building the Deployment Files
The build.xml file contains the definition of the tasks to be performed by Ant. The tasks defined in the delivered demo version are:
Compile the Java sources that are located in the folder
src and store the Java classes in the folder
classes.
Create a jar file containing all of the class files, and store the jar file in the folder
lib.
Create a zip file that contains the jar file and all icons associated with the customized welcome page, and store the zip file in the folder
lib.
The build.xml file is an XML file that contains element definitions such as:
<zipfileset dir="resources" prefix="images"> <include name="*.png" /> </zipfileset>
In such cases, the dir attribute indicates the name of the folder in the build environment where Ant can locate the required files, and the prefix attribute indicates the folder in the Software AG Runtime environment where the files will be copied to. In the extract shown above, Ant will search for all PNG graphics files ("*.png") in the resources folder in the build environment and add them to the zip file so that they can be unzipped into the images folder in the Software AG Runtime environment.
To build the deployment files, you can use either Eclipse or the command line.
In both methods, the Ant tasks defined in build.xml are processed. Ant builds a new jar file demos\WelcomePage\lib\SagBlueWelcomePage.jar, containing all of the Java classes required for the Software AG Runtime environment. It also build a zip file demos\WelcomePage\lib\SagBlueWelcomePage.zip, containing the jar file and all required PNG graphics. The name SagBlueWelcomePage comes from the definition of the property projectName in the file build.properties.