ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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

           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

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

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

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

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

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

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message