Kitchen

Jul 31 2017

Apacheant #apacheant


#

apache-ant-1.9.3

Introduction to Apache Ant

The Apache Ant package is a Java -based build tool. In theory, it is kind of like make. 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.

This package is known to build and work properly using an LFS-7.5 platform.

Package Information

Download MD5 sum: 995f21618acdf35beacc465c84d79534

Download size: 3.3 MB

Estimated disk space required: 105 MB

Estimated build time: 0.2 SBU

Apache Ant Dependencies

Required

Recommended

Installation of Apache Ant

Note

You may need additional libraries to satisfy the build requirements of various packages installed using Apache Ant. Review the table at http://ant.apache.org/manual/install.html#librarydependencies for any prerequisite libraries you may need. Place any needed libraries in lib/optional.

If it is not possible to install the recommended JUnit package, install Apache Ant by removing the reference to the test instructions (note that the tests will not be performed):

otherwise copy the junit jar file to the local directory tree.

Install Apache Ant by running the following commands:

The unit regression tests are performed during the build step below unless JUnit is not installed. Now, as the root user:

Note

Make sure the JAVA_HOME environment variable is set for the root user.

Command Explanations

sed -i ‘s/jars. . If the JUnit package is not installed, the regression tests cannot be performed.

cp -v /usr/share/java/junit-4.11.jar. . This command copies the JUnit jar file into the directory where Apache Ant will look for it.

./build.sh -Ddist.dir=/opt/ant-1.9.3 dist. This command does everything. It builds, tests, then installs the package into /opt/ant-1.9.3.

ln -v -sfn ant-1.9.3 /opt/ant. This command is optional, and creates a convenience symlink.

Configuring Apache Ant

Config Files


Written by admin


Leave a Reply

Your email address will not be published. Required fields are marked *