Assume you can
deploy to one of several environments. So you set up a variable called
'build.for" that you can pass on the command line to ant.
So, we're looking
at,
<property
name="app.DEV.deployment.dir" value="/opt/deployment/forDev"
/>
<property
name="app.QA.deployment.dir" value="/opt/deployment/forQa"
/>
<!-- fairly
simplistic; I might actually use different template files, etc
-->
...
<property
name="app.deployment.dir"
value="${app.${build.for}.deployment.dir}"/>
Does anyone else see
the benefit to a recursive propertyName parser?
There's been talk
about an IF command; would that be a more acceptable approach? Or am I merely
insane?
--
Bryan W.
Headley
[EMAIL PROTECTED]
Manager, Enterprise
Architecture (312) 881-4185
Universal Access,
Inc.
