https://issues.apache.org/bugzilla/show_bug.cgi?id=46019
Summary: subant uses parents lib-properties sometimes
Product: Ant
Version: 1.7.1
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
I'm calling another ant using this parent build file
<project name="SMSsupervision" default="dist" basedir=".">
...
<property name="lib" location="lib"/>
...
<ant dir="../Mediator" target="getJar">
<property name="getjar-target" location="${lib}"/>
</ant>
...
</project>
The called build.xml has the following passage:
...
<property name="lib" location="lib"/>
...
<path id="jaxws.classpath">
<pathelement location="${java.home}/../lib/tools.jar"/>
<fileset dir="${lib}">
<include name="*.jar"/>
<exclude name="j2ee.jar"/>
</fileset>
</path>
...
The problem: The childs ${lib} reference seems to get resolved to the ${lib} of
the parent, not the ${lib} that the child build file has implemented for
itself.
Replacing all "lib" names to "xlib" in the childs build file is a workaround
for this problem. Replacing the ${lib} reference with an absolute path also
works.
It seems to me that initialization of the subant is done in the wrong time
order.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.