ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Duggan <>
Subject <jar> with multiple <libs> and a <fileset>
Date Wed, 14 Aug 2002 22:05:10 GMT

I'm having trouble getting the <jar> task to do what I want. I am trying to 
use named filesets as the <fileset> and <lib> elements of the <jar> task.

Several things aren't going as expected:

1) The <fileset> excludes aren't picked up. Everything under the <fileset> dir

is being picked up.

2) Only the first <lib> is being honored. The files in the second <lib> 
fileset are not being picked up.

3) The <jar> task complains about the "web.xml" being in the fileset to jar, 
though it is specifically excluded. I think this is a consequence of (1).

Here are the relevant targets and filesets:

        <fileset id="files.war.dtapps"
                <exclude name="**/*.java,**/*.class,**/WEB-INF/web.xml"/>

        <!-- custom jars needed by wars -->
        <fileset id="libfiles.demandtec.war"
                <include name="${dtweb.jar.file}" />
                <include name="${dtclient.jar.file}" />

        <!-- standard jars needed by wars -->
        <fileset id="libfiles.standard.war"
                <include name="struts.jar" />
                <include name="multipart.jar" />

	<target name="war-dtapps" depends="compile-dtapps">
		<war warfile="${build.archive.dir}/${dtapps.war.file}"
               		        <fileset refid="files.war.dtapps"/>
                  		<lib refid="libfiles.standard.war"/>
                    		<lib refid="libfiles.demandtec.war"/>

-- Ian

Ian Duggan

DemandTec, Inc.
1 Circle Star Way Suite 200 
San Carlos, CA 94070 

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

View raw message