Hi Steve,
        Can you explain giving the example?

-----Original Message-----
From: Steve Loughran [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 14, 2006 1:04 PM
To: Ant Users List
Subject: Re: Adding sh script in ant

bejoy wrote:
> 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.

no, that wont work.

The env variables set in a shell script only last for the shell script,
they wont get picked up by Ant. Its like local variables.

If you need ant to have env variables set, you need to set them first.
One trick is to take one of the startup scripts (.sh, .pl or .py),
rename it and extend it. Most app servers do just that.

-steve

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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]

Reply via email to