ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: exporting a variable to a script
Date Mon, 13 Sep 2004 06:31:43 GMT
On Mon, 13 Sep 2004, Robert Mark Bram <relaxedrob@optusnet.com.au>
wrote:

> In a bash script, I might do the following:
> 
> export myVar=someValue
> # .. run bash scripts which can use myVar
> 
> If I am going to run a bash script through an Ant build file, how
> can I export the variable to the bash script?

<exec executable="bash scripts which can use myVar">
  <env key="myVar" value="someValue"/>
</exec>

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message