Hi,
I've got a set of jar files that I want to have added to the class path
and the same set of files needs to be copied to another location. How
can I achieve this without defining the set twice.

At the moment the build file looks like this:

<project name="concept" default="deploy" basedir=".">
        <path id="project.class.path">

                <!--Tomcat-->
                <fileset
dir="${projectRoot}/archives/jakarta-tomcat-3.2.3/lib">
                        <include name="**/*.jar"/>
                </fileset>              
        
                <!--Xerces-->
                <fileset dir="${projectRoot}/archives/xerces">
                        <include name="**/*.jar"/>
                </fileset>              
        </path>

        <cut/>

        <target name="copyResources" depends="init" description="copy
resource files">
                
                <!--Copy jar files-->
                <copy todir="${distPath}">
                        <!--Tomcat-->
                        <fileset
dir="${projectRoot}/archives/jakarta-tomcat-3.2.3/lib">
                                <include name="**/*.jar"/>
                        </fileset>              
                
                        <!--Xerces-->
                        <fileset dir="${projectRoot}/archives/xerces">
                                <include name="**/*.jar"/>
                        </fileset>              
                </copy>

                <cut/>
        </target>

        <target name="compile" depends="init" description="compile">
                <javac 
                        srcdir="${sourcePath}" 
                        destDir="${outputPath}" 
                        classpathref="project.class.path"
                        excludes="**/JU*.java" />
        </target>

        <cut/>
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to