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 50866] New: Include task breaks dependencies or extension-points for multiple files.
Date Thu, 03 Mar 2011 17:40:16 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50866

           Summary: Include task breaks dependencies or extension-points
                    for multiple files.
           Product: Ant
           Version: 1.8.2
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: ddiodati@successfactors.com


I was trying to include a build file(middle.xml) with also imports a parent
build file(common.xml).
When doing an include the middle.xml has a dependency on a target in common.xml
but will fail due to the include prefixing the project name on the dependency
which never allows it to match.

This also occurs if I have an extension-point defined in the common.xml and
have the middle.xml try to extend it.

This is similar to the Bug 48804.

Here is the example:
test.xml includes middle.xml which imports common.xml

common.xml:
<project name="common" default="default">
  <target name="common-init">
     <echo message="common-init"/>
  </target>
  <target name="common">
    <echo message="common"/>
</target>

middle.xml:
<project name="middle" default="default">
  <import file="common.xml" optional="true"/>
  <target name="middle" depends="common-init">
    <echo message="middle"/>
  </target>
</project>

test.xml:
<project name="test" default="test">
  <include file="middle.xml"/>
  <target name="test">
     <echo message="test"/>
  </target>
</project>


Here is the error :
BUILD FAILED
Target "middle.common-init" does not exist in the project "test". It is used
from target "middle.middle".

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

Mime
View raw message