ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Eitner <Christian.Eit...@cern.ch>
Subject Global path w/ refid and property file
Date Thu, 03 Jul 2003 17:29:21 GMT
Hello!

I have something like:

<project ...>

	<path id = "project.classpath">
		<pathelement path = "${binDestDir}/"/>
		<pathelement location = "${junitLib}"/>
	</path>
																							
	<target name = "Build something">
		<property file = "build.properties"/>
		<antcall target = "Echo properties"/>
		<javac ...>
			<classpath refid = "project.classpath"/>
		</javac>
	</target>

	<target name = "Echo properties">
		<property name = "projectClasspath" refid = "project.classpath"/>
		<echo>
			${projectClasspath}
		</echo>
	</target>

</project>

   The `Echo properties' task echoes the classpath with all jars and paths as specified (as
one string with separators), with locations taken from build.properties and expanded afterwards,
but the javac tasks says

dropping ${binDestDir} from path as it doesn't exist
dropping ${junitLib} from path as it doesn't exist

which looks like something went wrong with the expansion (only my guess).

   Any hints, anybody?

	 Thanks for your consideration,

	 Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message