ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <dave.alvar...@remanresource.com>
Subject Conditional depends clause
Date Fri, 31 Oct 2008 16:50:15 GMT
Hi,

I have this in my build.xml file

<target name="copy-conf" depends="copyDevConf,copyIntConf,copyQaConf,copyProdConf" />


What I would like, however, is to only have one depends option depending on what a variable
"env" is, which is passed to my script.  So, for example, if env = "dev", I would like to
execute only the "copyDevConf" option above.  How do I configure this in ANT?

Thanks, - Dave

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


Mime
View raw message