After upgrading from Ant 1.6.5 to Ant 1.7 my build script displays strange
warning
-----------------
Warning: Reference classpath-xjc has not been set at runtime, but was
found during
build file parsing, attempting to resolve. Future versions of Ant may
support
referencing ids defined in non-executed targets.
-----------------
Could you please explain what it means exactly?
This warning gets displayed in this target
<target name="xjc" depends="make-gen-src-dir" if="
unit.has.jaxb.sources">
<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask"
classpathref="classpath-xjc"/>
<xjc target="${unit.generated.src.dir}" extension="true" readonly
="yes" removeOldOutput="yes" catalog="${project.xmlcatalog.file}">
<schema dir="${unit.jaxb.dir}" includes="*.xsd"/>
<binding dir="${unit.jaxb.dir}" includes="*.xjb"/>
<depends dir="${project.xmlcatalog.dir}"/>
<produces dir="${unit.generated.src.dir}"/>
</xjc>
</target>
The reference "classpath-xjc" is defined as following in some other target
<path id="classpath-xjc">
<filelist dir="${global.p4root.dir}" files="
${global.lib.classpath.xjc}"/>
</path>
---
This e-mail may contain confidential and/or privileged information. If you are
not the intended recipient (or have received this e-mail in error) please
notify the sender immediately and delete this e-mail. Any unauthorized copying,
disclosure or distribution of the material in this e-mail is strictly forbidden.
Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional
EU corporate and regulatory disclosures.