ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Normington, Paul" <pnorming...@consilient.com>
Subject RE: ant task - property overrides
Date Tue, 27 Feb 2001 22:20:32 GMT

I wrote a custom task that overrides the default behaviour
of <property> so that you can override values. It is a 
surprisingly small file, and because it extends Property,
you can use it on files and individual properties.

${basedir} can't be reset, so have each file set its own
variable, e.g. ${base} and then you can override that value
before you call down to the sub-project.

Paul Normington

-----Original Message-----
From: Juno Suk [mailto:jsuk@micromuse.com]
Sent: Tuesday, February 27, 2001 10:20 AM
To: ant-user@jakarta.apache.org
Subject: ant task - property overrides


The Ant task, called from a parent build.xml, will have all its
properties
overridden by the parent. Isn't this counterintuitive? Shouldn't
properties
set within the subproject override its parent's properties?

Is there a quick way to workaround this problem? I'm trying to automate
build recursion through a hierarchy, but the fact that the parent
property
overrides its children's frustrates me.

Juno
jsuk@micromuse.com



Mime
View raw message