ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: <property file="..." prefix="..."/> what to expand?
Date Mon, 21 Jun 2010 07:18:22 GMT
On 2010-06-18, Bruce Atherton wrote:

> I would argue for the opposite (although I don't know how practical it
> is). Would it be possible for loadproperties to not only prefix the
> properties that are defined, but also the properties to be expanded?
> So "y=${x}" becomes "foo.y=${foo.x}"?

loadproperties already can.

With

y=${x}

and

<loadproperties ... prefix="foo"/>

you get

foo.y=${foo.x}

and with

<loadproperties>
  <filterchain>
    <prefixlines prefix="foo."/>
  </filterchain>
</loadproperties>

you get

foo.y=${x}

It is <property>'s behavior that doesn't provide the same control and
where we have had changes between the past three Ant releases.

Stefan

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


Mime
View raw message