ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Normington, Paul" <>
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 []
Sent: Tuesday, February 27, 2001 10:20 AM
Subject: ant task - property overrides

The Ant task, called from a parent build.xml, will have all its
overridden by the parent. Isn't this counterintuitive? Shouldn't
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
overrides its children's frustrates me.


View raw message