ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Efftinge <ld-developm...@lohndirekt.de>
Subject Re: nested variable expansion in property file
Date Thu, 04 Nov 2004 13:19:03 GMT
Is there a way to let ant resolve nested properties in command line 
properties?
when we use the

-propertyfile

Option with a file like this

var1=test
var2=${var1}/test2

the nested property in var2 will not be resolved.
Is there a way to enable this?

regards,
Sven


uli wrote:

> hello,
>
> i'm using a global property file for various ant scripts.
> to keep variable names short and concise i use variables
> in the delaration of other variables.
>
> like:
>
> workspace=/home/me
> classpath=${workspace}/classes
>
> i know that that's nothing unusual, but it doesn't work
> for my global property file. ant only expands the variables to this
> when using the command line %ant -properyfile global-ant.property:
>
> ${workspace}  --> /home/me
> $classpath    --> ${workspace}/classes
>
>
> does anybody have a solution for that problem ?
> or is it meant to be like that ?
>
>
> uli
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


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


Mime
View raw message