Hi Bejoy, Try this <target name="env-var" > <exec dir="dir/where/setenv.sh/file/resides" executable="sh" os="Linux" failonerror="true" > <arg line="setenv.sh" /> </exec> </target>
Regards, Pritesh -----Original Message----- From: bejoy [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 2:20 PM To: user@ant.apache.org Subject: Adding sh script in ant Hi , I have a Shell Script to set the environment variables("setenv.sh").I want to put this script into my ant build sothat before doing any task the env variables has to set.How can I call this script in my build.xml. Thanks in advance, Bejoy This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient or received it in error, please contact the sender by reply e-mail and destroy all copies of the original message. Please do not copy it for any purpose or disclose its contents. Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]