Below is the war Task; i want to exclude classes12.jar,jstl-1.1.0.jar in WEB-INF/lib of x.war; but when i open x.war(WEB-INF/lib) still classes12.jar existing.how to exclude classes12.jar in my WEB-INF/lib of x.war.
<war destFile="${temp.dir}/${x.war.name}" webxml="../web/WEB-INF/web.xml" manifest="../web/META-INF/MANIFEST.MF" duplicate="preserve">
<classes dir="${web.compile.dir}"/>
<fileset dir="../web/" includes="jsp/**"/>
<fileset dir="../web/" includes="*.jsp"/>
<fileset dir="../web/" includes="*.html"/>
<lib dir="../web/WEB-INF/lib">
<exclude name="classes12.jar"/>
<exclude name="jstl-1.1.0.jar"/>
</lib>
<webinf dir="../web/WEB-INF" excludes="web.xml,/lib/*.jar,/classes/**" />
</war>
<webinf dir="../web/WEB-INF" includes="**/*.jar" excludes="**/classes12.jar
That should be the only element you need for WEB-INF/lib, so get rid of the others