ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikael Petterson (KI/EAB)" <>
Subject import classpath
Date Wed, 14 Jul 2004 11:21:08 GMT

I am restructuring my build.xml structure using a common.xml with generic targets ( thanks
for all the hints I got).
I got stuc with the following problem. In my common.xml 'compile' target use a common classpath
( plattform for all my products) but
for each product I want to add classes, to classpath, that is specific. How can I do this?

All hints very much welcome!!!


Part of common.xml

<path id="common.classpath">
        <pathelement location="${CELLO.DIR}/${CMA.JAR}"/>
	<pathelement location="${CELLO.DIR}/${FOUNDATION.JAR}"/>
	<pathelement location="${CELLO.DIR}/${OMS.JAR}"/>
        <pathelement location="${CELLO.DIR}/${OMS.JAR}"/>

<target depends="init" name="compile">
        <!-- Both srcdir and destdir should be package roots. -->
       	 <javac debug="true" deprecation="true" destdir="${dest.dir}" srcdir="${src.dir}">
	 <classpath refid="common.classpath"/>

Example of tester.xml
<project name="tester" default="compile"> 
<import file="common.xml">


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message