https://issues.apache.org/bugzilla/show_bug.cgi?id=48825
--- Comment #3 from Antoine Levy-Lambert <[email protected]> 2010-02-26 22:31:45 UTC --- Hello Jesse, I have rewritten your project file in this way : <project basedir="." default="x"> <target name="x"> <echo file="Override.java"> public class Override extends org.apache.tools.ant.Task { private String n; private String v; public void setName(String n) { this.n = n; } public void setValue(String v) { this.v = v; } public void execute() { getProject().setProperty(n, v); } } </echo> <javac includeantruntime="true" srcdir="." destdir="." includes="Override.java"/> <taskdef name="override" classname="Override" classpath="."/> <property name="p" value="1"/> <override name="p" value="2"/> <echo>${p}</echo> </target> </project> This time the output is 2. So the problem is not that that Project#setProperty does not override properties any more, rather that Property#addProperty is not called in your piece of code. Regards, Antoine -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
