ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Weintraub <>
Subject Re: Developing in Java with ANT
Date Mon, 16 Mar 2009 21:13:29 GMT
On most systems, there is a shell script that launches Ant for you, so
you can launch it from the command line:

$ ant

You can also specify a target:

$ ant jar

And, if run this:

$ ant -projecthelp

it may even print out all the targets your build.xml file contains.

You need to install Ant, and make sure that the shell script (or
Windows batch script) that comes with Ant is in your PATH. Most of the
time, this is pretty automatic when you do the install. Sometimes, you
have to do some tweaking.

All you need is a Java 1.5 or greater version on your system, you have
the environment variable JAVA_HOME set to the Java directory (Ant will
try to figure this out if it isn't set), the Ant installation, and the
Ant shell script or the Ant Windows Batch script.

I suggest you get the book Ant in Action from Manning Press. If you're
technically savvy, you could try to learn Ant from the Apache Ant
manual, but that can be a bit confusing. The Ant manual is at

On Mon, Mar 16, 2009 at 5:03 PM, David Nemer <> wrote:
> Hello Everyone,
> I'm really new to Ant, and I need some help, my task is to code in JAVA a
> program to checkout a version of a open source project, compile it and run
> the test script which is in ANT.
> I'm working on the Ant-Doxygen Project (but it could be any project).
> I'm already successful with coding the "checkout a version of a repository"
> part.
> In Ant-Doxygen project, they already have an XML file to build the project.
> So once I have checked out the Project, all I need to do I to run ant to
> build the project. But, how can I code a way to run Ant to build this
> project? ( I need to code that in Java... I can't just go to my command line
> and run Ant.)
> Thank you so much in advance
> --
> David Nemer

David Weintraub

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message