ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Modin <dam...@handelsbanken.se>
Subject Read property based on another property
Date Fri, 13 Mar 2009 13:19:31 GMT
Hi!
I want to read a property based on another property.

FOR EXAMPLE:

In file "deploy.properties" i would like to have properties for deploy 
directories for different test environments:
deploy.dir.ft = ft/stage/2
deploy.dir.st =st/stage/2
deploy.dir.pt =st/stage/2
deploy.dir.pr=pr/stage/1

Then i want to read the deploy directory for the current testenvironment!

I tried this:

    <ftp server="ftpserver"
         remotedir="${deploy.dir.${testenv}}"
             :
             :
   </ftp>

....and offcause it did not work :-)

Is this possible? 
Thanks!
Daniel
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message