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:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 10:20 AM
To: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]


SetProperty.java

Reply via email to