You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2011/03/03 18:40:16 UTC
DO NOT REPLY [Bug 50866] New: Include task breaks dependencies or
extension-points for multiple files.
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.
DO NOT REPLY [Bug 50866] Include task breaks dependencies or
extension-points for multiple files.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50866
Nicolas Lalevée <ni...@hibnet.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |1.8.3
--- Comment #1 from Nicolas Lalevée <ni...@hibnet.org> 2011-03-08 17:26:53 EST ---
I have fixed it with r1079580. Thanks for the bug report.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.