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 Tue, 22 Jun 2010 03:57:23 GMT
On 2010-06-21, Dominique Devienne wrote:

> On Mon, Jun 21, 2010 at 2:18 AM, Stefan Bodewig <bodewig@apache.org> wrote:
>> loadproperties already can.
>> [...]
>> <loadproperties>
>>  <filterchain>
>>    <prefixlines prefix="foo."/>
>>  </filterchain>
>> </loadproperties>

>> you get
>> foo.y=${x}

> Well <filterchain> likely applies on the property file "text", not its
> "infoset", so will prefix comments and continuation lines as well,
> leading to an possibly incorrect file or changed property values.

Of course.

> My propsed ${.:x} allows the property-file-writer to be in control,
> and if we separated the prefix attribute for property writes and
> property reads, providing a read "search resolution path" to allow
> either read local unprefixed first, then local prefixed, then global,
> the build-file-writer is in control, and the various permutations of
> those 3, that should cover all possible situations.

You are correct.  The question what the default should be still remains,
though.

Stefan

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


Mime
View raw message