Apache Ant Build Example (1999)

A complete Ant 1.2 build.xml for a multi-module Java project — compile, test, package, javadoc, and deploy targets. A faithful reconstruction of our Motorola build system.

antbuildautomation

Apache Ant Build Example (1999)

A complete, working multi-module Ant build for the NMS project.

Structure

ant-build-automation/
├── build.xml          ← master build (delegates to modules)
├── nms-snmp/
│   ├── build.xml      ← SNMP module build
│   └── src/
├── nms-core/
│   ├── build.xml      ← core module build
│   └── src/
└── nms-ui/
    ├── build.xml      ← UI module build
    └── src/

Running

# Install Ant 1.x from https://ant.apache.org
ant              # full build (compile → test → jar)
ant clean        # remove all build artefacts
ant dist         # build + javadoc
ant deploy       # copy JARs to /opt/motorola/nms