ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Mark Bram" <>
Subject Re: passing parameters from Ant to Unix Shell script
Date Mon, 27 Sep 2004 05:41:02 GMT
Hi Animesh!

> So if I need to add multiple environment properties I can keep on
> adding env keys?


> What if I use parameters instead?

You can use nested <arg> elements to send paramaters to the script, but  
this isn't the same as setting an environment variable.

> Shall I just use
> the $myVar in the Unix script?

Well, if you use nested <arg> you will only be able to use it in the  
single script. If you use <env> you can it in scripts called by that too  
because it is exported..


Robert Mark Bram
B.Comp.(Systems Development/Business Systems)
Doctor of Philosophy Student

School of Network Computing
Faculty of Information Technology
Monash University
Peninsula Campus
McMahons Rd
Frankston, VIC 3199

Phone:  61 3 9904 4394
Facsimile:  61 3 9904 4124

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

View raw message