next up previous contents index
Next: Ant Tasks Up: Running Ant Previous: Cygwin Users   Contents   Index

Running Ant via Java

If you have installed Ant in the do-it-yourself way, Ant can be started with:

java -Dant.home=c:\ant org.apache.tools.ant.Main [options] [target]

These instructions actually do exactly the same as the ant command. The options and target are the same as when running Ant with the ant command. This example assumes you have set your classpath to include:



Andrew Marlow 2003-07-08