You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Bill Winspur <bw...@wynnon.com> on 2003/01/04 07:04:24 UTC
refid evaluation failure
The ant task in the following build file fails,
attempting to evaluate a nested property.
======
<?xml version="1.0"?>
<project name="proj-testcase" default="run-ant" basedir=".">
<path id="javadocsPathId">
<pathelement location="C:\jdk1.3.1_01\jre\lib\rt.jar"/>
<pathelement location="f:\jaxb-1.0-beta"/>
</path>
<target name="run-ant" >
<property name="jdpath" refid="javadocsPathId"/>
<echo message="jdpath: ${jdpath}"/>
<ant antfile="${libJBpath}">
<property name="jdpath5" refid="javadocsPathId"/>
</ant>
</target>
</project>
======
The following console output shows the fail message..
======
F:\swd\jLibTrees\bin>ant -buildfile bug-report.xml
Buildfile: bug-report.xml
run-ant:
[echo] jdpath: C:\jdk1.3.1_01\jre\lib\rt.jar;F:\jaxb-1.0-beta
BUILD FAILED
F:\swd\jLibTrees\bin\bug-report.xml:11: Reference javadocsPathId not found.
Total time: 1 second
F:\swd\jLibTrees\bin>
======
It seems that the refid attribute is not properly evaluated
in a nested property of the ant task, whereas it is properly
evaluated by the preceding, non-nested property task.
Is this a bug, or valid behaviour for which I have not been
able to find documentation ?
Bill.