ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilbert Rebhan <>
Subject Re: Basic question about ant
Date Fri, 28 Aug 2009 21:12:26 GMT
veena pandit schrieb:
> Well,  I wonder why I cant run ant from the command line. Even though the
> path is set.
>   Do I have to set classpath as well?

i assume your're on windows ..

ant installation in general =

set ANT_HOME=path/to/root/of/your/antinstalldirectory
set PATH=%PATH%;%ANT_HOME%/bin
also take care of addon /extra tasks, see =

then open up a shell and =
Buildfile: build.xml does not exist!
Build failed

OK :-)

ant + eclipse =
to make addon tasks work in eclipse :
Window | Preferences | Ant | Runtime | Global Entries | Add Jars

you may adjust the environment to your needs via focus on main target in
outline window, right mouse and choose 3 Ant Build not 2 Ant Build
Shift+Alt X Q and you'll get a new window where args, classpath,
environment may be altered

another possibility in your special case, means accessing
an executable not on path, just use the whole path, means =


<project default="wsgen"
    <target name = "wsgen">
    <exec executable="the/whole/path/to/wsgen">
       <arg line="...

Regards, Gilbert

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

View raw message