Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
How to get properties from an executable run with exec

How to get properties from an executable run with exec

2005-05-09       - By ELASRI Patrice SOFRECOM
Reply:     1     2     3  


Hi,

I'm new to Ant and need to know how to get several properties as
environment variables for an executable run from ant, with the "exec"
task.

I saw that one cans do that with nested <env> elements, but this doesn't
satisfies me. Because I load several properties from a configuration
file and I don't want to write again a key/value pair for each of these
properties. In fact, in a first time, I want to use "ant" to get
configuration parameters (set as properties) inside a shell script.

At least, does a "for" like loop exists within ant, so I can loop over
these properties and set environment variables with the <env> element.

Thanks in advance

P. ELASRI

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.