ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Wilkinson" <d...@iquo.co.uk>
Subject Reference not found error with Ant 1.6
Date Wed, 18 Feb 2004 14:38:03 GMT
Hi!

I have just downloaded version 1.6.1 of ant ( was previously using version
1.5.4 ) and I am getting a Reference not found error when trying to run my
build. This was not happening under version 1.5.4 of ant.

BUILD FAILED
D:\development\commons\services\MessageManager\build.xml:154: Following
error occured while executing this line
D:\development\ant\buildlibrary\build-compile.xml:21: Reference
project.lib.classpath not found.

The build files are set up to call a set of standard library build files
which do the actual task, such as compile. The following are the path
definitions and target from the project's build.xml file which is where ant
is run from.

	<path id="project.lib.classpath">
		<pathelement location="${commons-beanutils.jar}"/>
		<pathelement location="${commons-collections.jar}"/>
		<pathelement location="${commons-digester.jar}"/>
		<pathelement location="${commons-logging.jar}"/>
		<pathelement location="${dom4j.jar}"/>
		<pathelement location="${abstractfactory.jar}"/>
		<pathelement location="${logging.jar}"/>
		<pathelement location="${standardexceptions.jar}"/>
		<pathelement location="${standardhelpers.jar}"/>
		<pathelement location="${encryption.jar}"/>
		<pathelement location="${reporting.jar}"/>
		<pathelement location="${documentmanager.jar}"/>
		<pathelement location="${xmlhelpers.jar}"/>

        <!-- The following is used to Validate XML from an external Schema
-->
		<pathelement location="${xml.jarv.jar}"/>
		<pathelement location="${xml.jing.jar}"/>
		<pathelement location="${xml.msv.jar}"/>
		<pathelement location="${xml.msv.xsdlib.jar}"/>
	</path>
	
	<path id="compile.classpath">
		<pathelement path="${java.class.path}/"/>
		<pathelement location="${project.output.home}"/>
		<pathelement location="${j2ee.jar}"/>
		<path refid="project.lib.classpath"/>
	</path>

	<target name="compile" depends="clean,create.ejb.interface"
description="There are no Java files in this project so compile just copies
the templates.">
		<ant antfile="${ant.build.compile}" dir="${project.home}"
target="compile" inheritAll="false" inheritRefs="false">
			<property name="project.output.home"
value="${project.output.home}"/>
			<property name="project.source.home"
value="${project.source.home}"/>
			<property name="project.generated.source.home"
value="${project.ejb.generated.source.home}"/>
			<property name="compile.debug"
value="${compile.debug}"/>
			<property name="compile.deprecation"
value="${compile.deprecation}"/>
			<property name="compile.optimize"
value="${compile.optimize}"/>
			<reference refid="compile.classpath"
torefid="compile.classpath"/>
		</ant>
	</target>

And the following target is from the build-compile.xml which is being run by
the <ant> task shown above.


	<!-- == [ compile.without.generated ]
========================================================= -->
	<target name="compile.without.generated" depends="clean"
description="Compile all the Java files in source home."
unless="project.generated.source.home">
		<javac destdir="${project.output.home}"
debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${compile.optimize}">
			<classpath refid="compile.classpath"/>
			<src path="${project.source.home}"/>
		</javac>
	</target>


Can anyone tell me what has changed in version 1.6 that will have affected
this and also the best way of getting round it without having to change all
our build.xml files

Regards

David Wilkinson.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message