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 10492] New: - ant task is ignoring inheritAll attribute
Date Fri, 05 Jul 2002 00:43:05 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=10492>.
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=10492

ant task is ignoring inheritAll attribute

           Summary: ant task is ignoring inheritAll attribute
           Product: Ant
           Version: 1.5Beta3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: simon.lieschke@orion.co.nz


I have narrowed this problem down to the following situation.  I have two build 
scripts, util.xml and build.xml.  The build.xml script is located in a 
directory under the directory util.xml is in.

The echo task in the util.xml script simply echoes the basedir property to the 
console.

The build.xml contains two tasks, shown below.  Both calls to the echo target 
have inheritAll set to false, so the output of the echo task should always be 
the basedir of the util.xml file.

<target name="main">
    <ant antfile="../util.xml"
        target="echo"
        inheritAll="false">
    </ant>

    <antcall target="childtarget"/>
</target>
	
<target name="childtarget">
    <ant antfile="../util.xml"
        target="echo"
        inheritAll="false">
    </ant>
</target>


Running the main target results in the following output, with incorrect output 
from the second echo call.

Buildfile: build.xml

main:

echo:
     [echo] P:\ANT

childtarget:

echo:
     [echo] P:\ANT\Test

BUILD SUCCESSFUL
Total time: 1 second

--
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