- Apache Ant is a Java library and command-line tool that help building software.
- Ant is open source
- ANT: Another Neat Tool
- http://ant.apache.org
Ant Tasks
Ant version
|
|
Structure of build file:
- build.xml is the default ant script file.
- Project is the root tag.
- Project consist of many targets.
- Targets have ant tasks.
Running ant build:
If you just run ant command, by default ant will look for a file name build.xml in current directory.
1c:\antDemo>antExplicitly provide a build file using flag:-buildfile
1c:\antDemo>ant -buildfile build2.xml
Project tag and default attribute:
|
|
depends attribute for target chaining:
|
|