ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <dave.alvar...@remanresource.com>
Subject Why is everything getting included in my WAR?
Date Mon, 18 Aug 2008 21:43:47 GMT
Hi,

I want to build my WAR file such that it only includes specific JARS from my staging lib directory
as opposed to all the ones that are in there.  Unfortunately, despite my include and exclude
directives, all JARS from the directory are getting included.  Can you help me figure out
what is wrong with the below?  Thanks, - Dave  

  <property name="webroot.dir" value="${basedir}/WebContent"/>
  <property name="webInfDir" value="${basedir}/WebContent/WEB-INF"/>
  <property name="webInfLibDir" value="${webInfDir}/lib"/>
...
        <target name="build-war">
                <mkdir dir="${build}"/>
                <war
                        basedir="${webroot.dir}"
                        warfile="${build}/${war-file-name}"
                        webxml="${webInfDir}/web.xml">
                        <exclude name="WEB-INF/${build}/**"/>
                        <exclude name="WEB-INF/src/**"/>
                        <exclude name="WEB-INF/web.xml"/>
                        <exclude name="${build}/${war-file-name}"/>
                        <lib dir="${webInfLibDir}">
                                <exclude name="*.jar"/>
                                <include name="appUtil.jar"/>
                                <include name="appproperties.jar"/>
                                <include name="commons-beanutils-1.7.0.jar"/>
                                <include name="commons-codec-1.3.jar"/>
                                <include name="commons-collections-3.1.jar"/>
                                <include name="commons-digester-1.6.jar"/>
                                <include name="commons-el-1.0.jar"/>
                                <include name="commons-fileupload-1.0.jar"/>
                                <include name="commons-lang-2.1.jar"/>
                                <include name="commons-logging-1.0.4.jar"/>
                                <include name="commons-pool-1.3.jar"/>
                                <include name="commons-validator-1.3.1.jar"/>
                                <include name="json.jar"/>
                                <include name="jstl-1.1.0.jar"/>
                                <include name="log4j-1.2.8.jar"/>
                                <include name="myfaces-api-1.1.5.jar"/>
                                <include name="myfaces-impl-1.1.5.jar"/>
                                <include name="NPSConfigDelegate.jar"/>
                                <include name="npsimdelegate.jar"/>
                                <include name="standard.jar"/>
                                <include name="tomahawk-1.1.6.jar"/>
                        </lib>
                </war>
        </target>

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


Mime
View raw message