ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11003] New: - inheritall="false" doesn't exclude task-defined properties
Date Sat, 20 Jul 2002 11:53:07 GMT
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: ant-dev@jakarta.apache.org
        ReportedBy: jeff@socialchange.net.au


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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message