ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duffey, Kevin" <KDuf...@marketron.com>
Subject ant inheritAll doesn't pass <path ?
Date Thu, 03 Jul 2003 18:42:41 GMT
Hiya,

I have a main ant script that sets up something like:

<path id="my.classpath">
	<path refid="compile.classpath"/>
	<pathelement location="somepath/classes"/>
</path>

then, I call a specific ant script from this ant script:

<ant dir="${other.ant.scripts.dir}/ant-script-1" inheritall="true"/>

Inside of the build.xml in the ${other.ant.scripts.dir}/ant-script-1 I have something like:

<target name="compile">
	<javac srcdir="src"
		destdir="classes"
		debug="${debug}"
		deprecation="on"
		optimize="on">
		<classpath refid="${my.classpath}"/>
	</javac>
</target>


When my main build script gets to this point, it calls the ant-script-1/build.xml just fine,
but it says it can't find the my.classpath. Does the inheritAll not pass along paths and such?
Is there some way I can access this path from the parent ant script?

Thanks.
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003
 


***************************************************************************
"The information contained in this e-mail message  may be confidential and 
protected from disclosure.  If you are not the intended recipient, any 
dissemination, distribution or copying is strictly prohibited.  If you think 
that you have received this e-mail message in error, please e-mail the 
sender at exchangeadmins@marketron.com."
***************************************************************************

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


Mime
View raw message