ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44323] New: - import fails to suppress reimport of top-level build file
Date Tue, 29 Jan 2008 20:56:24 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44323>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44323

           Summary: import fails to suppress reimport of top-level build
                    file
           Product: Ant
           Version: 1.7.0
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: vallon@bear.com
                CC: vallon@bear.com


When <import> is given the same path twice, it skips the second import. 
However, if <import> is given a path to the original (top-level) build-file, it
does not consider it a duplicate import, and imports it (again) ... unless ant
is invoked as "ant –f /full/path/to/build.xml" - then import does recognize that
the file has already been imported.

<project name="test">
<echo message="test-top" />
<import file="./build.xml" />
<echo message="test-bottom" />
</project>

'ant' shows test-top, test-top, test-bottom, test-bottom
'ant -f /path/to/build.xml' shows test-top, test-bottom

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message