ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: exporting a variable to a script
Date Mon, 13 Sep 2004 06:19:30 GMT
1. you can use nested <env>s when invoking with <exec>
2. you can create the script from a template and insert the "export"
statements

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Robert Mark Bram [mailto:relaxedrob@optusnet.com.au]
> Gesendet am: Montag, 13. September 2004 08:09
> An: Ant Users List
> Betreff: exporting a variable to a script
> 
> Hi All!
> 
> In a bash script, I might do the following:
> 
> export myVar=someValue
> # .. run bash scripts which can use myVar
> 
> AFAIK there is no other way to set environment variables for 
> bash scripts. 
> If I am going to run a bash script through an Ant build file, 
> how can I 
> export the variable to the bash script?
> 
> Rob
> :)
> 
> -- 
> Robert Mark Bram
> B.Comp.(Systems Development/Business Systems)
> B.Net.Comp.(Hons)
> Doctor of Philosophy Student
> 
> School of Network Computing
> Faculty of Information Technology
> Monash University
> Peninsula Campus
> McMahons Rd
> Frankston, VIC 3199
> AUSTRALIA
> 
> Phone:  61 3 9904 4394
> Facsimile:  61 3 9904 4124
> Email: robert.bram@infotech.monash.edu.au
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message