This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Ant 1.8 significantly changed behavior of org.apache.tools.ant.Project public void setProperty(java.lang.String name, java.lang.String value) Set a property. Any existing property of the same name is overwritten, unless it is a user property. Parameters: name - The name of property to set. Must not be null. value - The new value of the property. Must not be null. The new implementation prohibits overrides of any property. The new Ant implementation breaks functionality of <nb-overrideproperty> task that is critical part of Mobility project build system. Following test returns "b" on Ant 1.7 and "a" on Ant 1.8: <project name="test" default="test"> <target name="test"> <taskdef resource="org/netbeans/mobility/antext/defs.properties" classpath="org-netbeans-modules-mobility-antext.jar"/> <property name="test" value="a"/> <nb-overrideproperty name="test" value="b"/> <echo>${test}</echo> </target> </project>
Reproducible and filed upstream: https://issues.apache.org/bugzilla/show_bug.cgi?id=48825 Anyway you should not be using this method; delete <nb-overrideproperty>. Ant properties are designed to be single assignment. I don't exactly follow the purpose of ${buildsystem.baton} - it seems to be a strange pattern - but if you really need to pass state between targets you can do so using a properties file (as in e.g. c01e2c997e19). More likely the system of inserting build-impl.xml fragments should be fixed so that they directly specify the directories they wish to work with.
(In reply to comment #1) > https://issues.apache.org/bugzilla/show_bug.cgi?id=48825 See resolution there. The change was in Property, not Project. Subclassing other tasks is generally a poor idea.
fixed in http://hg.netbeans.org/main/rev/d1d7fdf20478
Integrated into 'main-golden', will be available in build *201003020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d1d7fdf20478 User: asotona@netbeans.org Log: fixed issue #181284 nb-overrideproperty task should not subclass property task