the example below works fine for me.
make sure that no typos are within property file abc.P.properties and in the
buildfile.
Maybe there is a empty string in 'P.refid'.
detlef
Quoting "Hagen, Christian" <chagen@init-ka.de>:
> Hi,
>
> even searching docs and archives did not help me with the following
> issue:
>
> I have got two property files:
>
> abc.P.properties:
> P.refid = xyz
> P.display.somevalue = ABC
> P.display.refname = ${C.display.name}
>
> xyz.C.properties:
> C.display.name = Name of XYZ
>
>
> The entry "P.refid" in "abc.P.properties" is used to resolve the name of
> the second property file (here: "xyz.C.properties"). The property
> "P.display.refname" by default references another property set in the
> "*.C.properties".
>
> I do load the two property files with
>
> <property file="abc.P.properties"/>
> <property file="${P.refid}.C.properties"/>
>
> When setting verbose mode, there are warnings after the first file, that
> some properties (ie. "C.display.name") have not been set, which is
> perfectly clear.
>
> The problem is, that after reading the second property file, I inserted
> some echo tasks to output the property values. The result is similar to
>
> "P.display.refname : ${C.display.name}"
>
> which means that the property has not been resolved.
>
> Question: Is there any way to trigger ANT to resolve the properties
> again? Or should the example above work anyway?
>
>
> Thanks in advance.
>
> Greetings
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
|