ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject resolve dynamic property ?
Date Wed, 06 Jun 2007 14:07:10 GMT

Hi,

i have a static property file with key=value :

web.buildcmd=make-${buildtarget}-SB


my first script creates the dynamic property
${buildtarget} with <script> task and project.setPropery() method

my second script now wants to use the ${web.buildcmd}
property when being called from first script

when echoing ${buildtarget} in second script it's resolved correctly
but in context of ${web.buildcmd} it's not resolved.

[echo] ${buildtarget} == Fullauto 

[echo] ${web.buildcmd} == make-${buildtarget}-SB


so it's =

first script loads propertyfile, ${buildtarget} isn't created yet
create property ${buildtarget}
call second script

i already tried to load the propertyfile a second time in second script
means after ${buildtarget} has been created, but that doesn't help
either


Any ideas ?

Regards, Gilbert

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


Mime
View raw message