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=11003>. 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=11003 inheritall="false" doesn't exclude task-defined properties Summary: inheritall="false" doesn't exclude task-defined properties Product: Ant Version: 1.5 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi, It seems that setting 'inheritAll' to false doesn't exclude properties previously set via an antcall's nested param, or another <ant> task's nested property. Eg, if I have: <project name="Main project" default="main" basedir="."> <target name="main"> <antcall target="checkdep" inheritAll="false"> <param name="name" value="orig"/> </antcall> </target> <target name="checkdep"> <echo>In the outer target, name is '${name}'</echo> <ant dir="sub" inheritAll="false"/> </target> </project> And then in the sub/build.xml, I have: <project name="Sub project" default="main" basedir="."> <property name="name" value="SubProj"/> <target name="main"> <echo>In the inner target, name is '${name}'</echo> <echo>it should be 'SubProj'</echo> </target> </project> The output is: main: checkdep: [echo] In the outer target, name is 'orig' main: [echo] In the inner target, name is 'orig' [echo] it should be 'SubProj' This is the same under 1.4.1 and 1.5. --Jeff -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
