DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5662>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5662 <ant> task fails to pass properties properly for nested sub projects Summary: <ant> task fails to pass properties properly for nested sub projects Product: Ant Version: 1.4.1 Platform: PC OS/Version: Linux Status: NEW Severity: Blocker Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I wrote three build files to simulate a 3 three levels of nesting: build.xml (level 1): <project name="test" basedir="." default="test"> <property name="test_var" value="first"/> <target name="test"> <ant dir="." antfile="subbuild.xml" target="test" inheritAll="true"> <property name="test_var" value="second_set_from_first"/> </ant> <echo message="First Test Variable: ${test_var}"/> </target> </project> subbuild.xml (level 2): <project name="test" basedir="." default="test"> <property name="test_var" value="second"/> <target name="test"> <ant dir="." antfile="subsubbuild.xml" target="test" inheritAll="true"> <property name="test_var" value="third_set_from_second"/> </ant> <echo message="Second Test Variable: ${test_var}"/> </target> </project> subsubbuild.xml (level 3): <project name="test" basedir="." default="test"> <target name="test"> <property name="test_var" value="third"/> <echo message="Third Test Variable: ${test_var}"/> </target> </project> The expected results are as follows: test: test: test: [echo] Third Test Variable: third_set_from_second [echo] Second Test Variable: second_set_from_first [echo] First Test Variable: first With inheritAll=true in build.xml and subbuild.xml for the ant task, this is what I get. I would also expect the same results with inheritAll=false, since all this does is keep the parent project from automatically passing its properties. The results I get are as follows: test: test: test: [echo] Third Test Variable: second_set_from_first [echo] Second Test Variable: second_set_from_first [echo] First Test Variable: first This doesn't appear to be correct. It seems like the test_var property set in build.xml is getting passed to both subbuild.xml & subsubbuild.xml. This appears to be a bug. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
