ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koegel, Michael" <>
Subject AW: Problem with default values
Date Tue, 06 Aug 2002 14:22:03 GMT

just load the property-files in the precedence they should have.
<property resource=""/>
<property resource=""/>

If a property is specified in it will not be overriden by as properties are immutable.
That way you're even able to only specify the properties in
that you want to override.
Should also be true for ${} if you specify as a
commandline argument or in $ANT_OPTS.


-----Urspr√ľngliche Nachricht-----
Von: Christian Holmqvist, IT, Posten
Gesendet am: Dienstag, 6. August 2002 15:58
An: 'Ant Users List'
Betreff: Problem with default values


I have a small problem...

I want to be able to change some values in a property file and use the name
of the file as input parameter to the ant script. But when no input
parameter is submitted I want default values to be used, also they in a
property file.

I been trying to do something like this:
  <property name="EllaRootBaseDir" value="${basedir}/.."/>
  <property name="my_prop_file"
  <property file="${EllaRootBaseDir}/${my_prop_file}"/>

But this don't work since the last property task gets totally strange
values.... (something liked d:\something\d:something\ )

Can someone help me?

/Christian Holmqvist

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message