From: SourceForge.net <no...@so...> - 2006-11-04 11:57:15
|
Bugs item #1590427, was opened at 2006-11-04 11:57 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=416920&aid=1590427&group_id=36177 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: property Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Steven Rosenthal (smroid) Assigned to: Nobody/Anonymous (nobody) Summary: property set with var task passes through inheritAll="false" Initial Comment: I'm running ant 1.6.5, contrib 1.0b2. with: <target name="testA"> <property name="testprop1" value="test1"/> <var name="testprop1" value="newval1"/> <property name="testprop2" value="test2"/> <antcall target="testB" inheritAll="false"/> </target> <target name="testB"> <property name="testprop1" value="1"/> <property name="testprop2" value="2"/> <echo message="testprop1: ${testprop1}"/> <echo message="testprop2: ${testprop2}"/> </target> invoking 'ant testA' yields: Buildfile: build.xml testA: testB: [echo] testprop1: newval1 [echo] testprop2: 2 BUILD SUCCESSFUL Total time: 0 seconds In Variable.java, the forceProperty() method should be rewritten to be more like removeProperty(), in particular the use of the ant.PropertyHelper to access the Hashtable to be munged. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=416920&aid=1590427&group_id=36177 |