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 21180] - Downgrade multiple <import> warning
Date Thu, 31 Aug 2006 09:22:30 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=21180>.
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=21180


tim.gordon@allustra.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW




------- Additional Comments From tim.gordon@allustra.com  2006-08-31 09:22 -------
This was originally reported when <import> was first introduced - it doesn't
seem to happen any more. The original issue occurred in the following situation:

a.xml:
<project name="project-a" basedir="." default="">
  <target name="target-a">
    <echo message="This is target a"/>
  </target>
</project>

b.xml:
<project name="project-b" basedir="." default="">
  <import file="./a.xml"/>
  <target name="target-b" depends="target-a">
    <echo message="This is target b"/>
  </target>
</project>

c.xml:
<project name="project-c" basedir="." default="">
  <import file="./a.xml"/>
  <target name="target-c" depends="target-a">
    <echo message="This is target c"/>
  </target>
</project>

d.xml:
<project name="project-d" basedir="." default="">
  <import file="./b.xml"/>
  <import file="./c.xml"/>
  <target name="target-d" depends="target-b,target-c">
    <echo message="This is target d"/>
  </target>
</project>

ant -f d.xml target-d

This used to warn about multiple inclusion of a.xml, but doesn't seem to in the
latest build of ANT.

The above style of use (a 'diamond' of imports) seemed a reasonable one to want
to use - the only thing worth checking is that whether ANT is tolerant of
multiple imports - I assume it is because it doesn't complain.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message