ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <>
Subject Re: how to use spawn in linux for exec
Date Thu, 25 May 2006 11:21:54 GMT

to find out which ant you are using, simply type :

$ which ant

in your console.

To use another version of ant, for instance ant1.6.5, supposing you have
installed ant1.6.5 under /opt/apache-ant-1.6.5, set the following
environment variables :

export ANT_HOME
export PATH

these 4 lines can be added at the end of your .kshrc or equivalent. If
you are using csh as a login shell, the syntax is slightly different.

setting ANT_HOME to the location of the ant distribution you want to use
is an absolute requirement.
setting PATH is a commodity.



vamsee wrote:
> Hi,
>     I want to use spawn for exec in linux. 
> I have used following code in my build.xml
> <exec executable="sh" spawn="true"> 
>          <arg value="-c ls" /> 
>       </exec>
> but when i ran ant in shell terminal, following msg is displayed:
> <exec> th task doesn't suppport spawn
> please provide some solution or any workaround so that i can have same
> affect as i use the command "spawn"
> Also guys can you please provide information on what files i want to modify
> to overwrite in built linux version with latest version of ant.
> Looking for your earliset response
> Regards,
> vamsee

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

View raw message