%general-entities; ]> $LastChangedBy$ $Date$ apache-ant-&apache-ant-version; Apache Ant Introduction to Apache Ant The Apache Ant package is a Java-based build tool. In theory, it is like the make command, but without make's wrinkles. Ant is different. Instead of a model that is extended with shell-based commands, Ant is extended using Java classes. Instead of writing shell commands, the configuration files are XML-based, calling out a target tree that executes various tasks. Each task is run by an object that implements a particular task interface. &lfs81_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &apache-ant-md5sum; Download size: &apache-ant-size; Estimated disk space required: &apache-ant-buildsize; Estimated build time: &apache-ant-time; Additional Downloads Required file: Required file: Required file: Required file: Apache Ant Dependencies Required A JDK ( or ) and User Notes: Installation of Apache Ant Several dependent packages have moved since the packaging of Ant requiring download of the above extra files. Copy those files into the source tree with the following commands: cp -v ../jai-core-1.1.3.jar \ ../jai-codec-1.1.3.jar \ ../xz-1.0.jar lib && unzip -p ../NetRexx-3.06-GA.zip lib/NetRexxC.jar > lib/NetRexxC.jar Build a limited bootstrap version of Apache Ant using the following command: ./bootstrap.sh Download the rest of the runtime dependencies using the fetch.xml ant build script: bootstrap/bin/ant -f fetch.xml -Ddest=system || true && cp -v lib/*.jar lib/optional/ Build Apache Ant by running the following command: ./build.sh -Ddist.dir=$PWD/ant-&apache-ant-version; dist Install, as the root user: cp -rv ant-&apache-ant-version; /opt/ && chown -R root:root /opt/ant-&apache-ant-version; && ln -sfv ant-&apache-ant-version; /opt/ant Command Explanations bootstrap/bin/ant -f fetch.xml -Ddest=system || true: These commands download the rest of the missing dependencies into the source tree (in the lib/ directory). cp -v ... lib/optional: This command copies the previously downloaded jar files to the expected place in the source tree so that ant picks them up at buld time. ./build.sh -Ddist.dir=$PWD/ant-&apache-ant-version; dist: This command builds, tests, then installs the package into a temporary directory.. Configuring Apache Ant Config Files /etc/ant/ant.conf, ~/.ant/ant.conf, and ~/.antrc ~/.ant/ant.conf ~/.antrc /etc/ant/ant.conf Configuration Information Some packages will require ant to be in the search path and the ANT_HOME environment variable defined. Satisfy these requirements by issuing, as the root user: cat > /etc/profile.d/ant.sh << EOF # Begin /etc/profile.d/ant.sh pathappend /opt/ant/bin export ANT_HOME=/opt/ant # End /etc/profile.d/ant.sh EOF The above instrutions assume you have configured your system as described in . Contents Installed Programs Installed Libraries Installed Directories ant, antRun, antRun.pl, complete-ant-cmd.pl, runant.pl, and runant.py ant*.jar /opt/ant-&apache-ant-version; Short Descriptions ant is a Java based build tool used by many packages instead of the conventional make program. ant antRun is a support script used to start ant build scripts in a given directory. antRun antRun.pl is a Perl script that provides similar functionality offered by the antRun script. antRun.pl complete-ant-cmd.pl is a Perl script that allows Bash to complete an ant command-line. complete-ant-cmd.pl runant.pl is a Perl wrapper script used to invoke ant. runant.pl runant.py is a Python wrapper script used to invoke ant. runant.py ant*.jar files are the Apache Ant Java class libraries. ant-*.jar