Hi, 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 : ANT_HOME=/opt/apache-ant-1.6.5 export ANT_HOME PATH=$ANT_HOME/bin:$PATH 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. Regards, Antoine 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
