ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ba...@goodconsultants.com
Subject Can I append classpath variable through multiple targets?
Date Mon, 15 Dec 2003 20:00:21 GMT
Hi all,

Can I append classpath variable through multiple targets? Please check the 
following codes...

<target name="classpath-general">

        <echo message="classpath-general in here!"/>

        <path id="compile.classpath">

                <pathelement location="${j2eeBase}/lib/j2ee.jar"/>

        </path>

</target>


<target name="classpath-tomcat" >

        <echo message="classpath-tomcat: CATALINA_HOME is 
${system.CATALINA_HOME}"/>

        <path id="compile.classpath">
        <pathelement location="${catalina.home}/common/classes"/>
        <fileset dir="${catalina.home}/common/endorsed">
                <include name="*.jar"/>
        </fileset>

        <fileset dir="${catalina.home}/common/lib">
                <include name="*.jar"/>
        </fileset>

        <pathelement location="${catalina.home}/shared/classes"/>
        <fileset dir="${catalina.home}/shared/lib">
                <include name="*.jar"/>
        </fileset>

        </path>


</target>



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


Mime
View raw message