ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <dave.alvar...@remanresource.com>
Subject How to restrict what goes into my WEB-INF/lib directory?
Date Tue, 12 Aug 2008 21:09:07 GMT
Hi,

I want to instruct ant that upon building a WAR file, only include certain files from my lib
directory in the WEB-INF/lib directory.  However, this doesn't seem to be working

        <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}">
                                <include name="commons-validator-1.3.1.jar"/>
                        </lib>
                </war>
        </target>

Instead ant seems to be including all the jar files in my ${webInfLibDir} instead of just
the one.  Any ideas on why?

Thanks, - Dave

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


Mime
View raw message