ant-user mailing list archives

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

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}"/>
                        <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"/>

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:
For additional commands, e-mail:

View raw message