ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject How can I select different classpath for building different apps?
Date Mon, 15 Dec 2003 17:53:57 GMT

In one single build.xml, how can I select different set of classpaths? for 
Tomcat and for other apps?

I try to do the followings:

<target name="tomcat" if="system.CATALINA_HOME">

        <antcall target="clean"/>
        <antcall target="init-tomcat"/>
        <antcall target="compile-newserver"/>
        <antcall target="dist-tomcat"/>
        <antcall target="deploy-tomcat"/>


In the init-tomcat target, I have the followings:

<target name="init-tomcat">

        <echo message="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 dir="${catalina.home}/common/lib">
                <include name="*.jar"/>

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



Unfortunately, it does not work setting classpath like this... Any advice? 



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

View raw message