On Jun 9, 2004, at 10:25 AM, Mattos, John wrote:
<target name="dev-target">
      <echo massage = "${location.dev}>
</target>

<target name="qa-target">
      <echo massage = "${location.qa}>
</target>

I have a variable called ${envir} and I'd like to do something like

<target name="general-target">
      <echo massage = "${location.${envir}}>
</target>


Can I do anything like this? It doesn't seem to like the nested ${} 's


A cleaner solution is to have a qa.properties file and a dev.properties file.


   <property name="envir" value="dev"/>
   <property file="${envir}.properties"/>

To run for QA, use:

        ant -Denvir=qa

Place whatever properties need to be different into each of those files appropriately (location, for example).

Erik



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to