ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "EJ Ciramella" <ejcirame...@upromise.com>
Subject RE: Trying (and failing) to build the nightly snapshot
Date Mon, 04 Aug 2008 13:32:19 GMT
I think I misunderstood this particular bug.  It appears to be a problem
with $${someprop} versus loading two property files and the first one
containing a ${property} that is set in the second one loaded.

To be explicit, if you have two property files, a.properties and
b.properties, in the first one loaded you have a ${property} that is set
in b.properties, ant leaves it as ${}.

a.properties:

foo=bar

coolprop=${foo}:${from.b.properties}





b.properties:

from.b.properties=awesome




build.xml:

<project default="go">
    <target name="go" >
	<property file="a.properties" />   
      <property file="b.properties" />
        <echo>This is a problem: ${coolprop}</echo>
    </target>
</project>

You'll see this:

This is a problem: bar:${from.b.properties}



-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org] 
Sent: Monday, August 04, 2008 7:51 AM
To: dev@ant.apache.org
Subject: Re: Trying (and failing) to build the nightly snapshot

On Tue, 29 Jul 2008, EJ Ciramella <ejciramella@upromise.com> wrote:

> I also tried to verify that bug 42277 was closed/fixed in the
> nightly builds, but I see it's not.
> 
> String resources only have properties single expanded. If you relied
> on <string> resources being expanded more than once, it no longer
> happens.  Bugzilla report 42277.

Could you please provide a simple test that fails for you?

Stefan

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


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


Mime
View raw message