next up previous contents index
Next: Files Up: Command-line Options Summary Previous: Command-line Options Summary   Contents   Index

Examples

ant runs Ant using the build.xml file in the current directory, on the default target.

ant -buildfile test.xml runs Ant using the test.xml file in the current directory, on the default target.

ant -buildfile test.xml dist runs Ant using the test.xml file in the current directory, on the target called dist.

ant -buildfile test.xml -Dbuild=build/classes dist runs Ant using the test.xml file in the current directory, on the target called dist, setting the build property to the value build/classes.



Andrew Marlow 2003-07-08