You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Zabel, Ian" <IZ...@cirqit.com> on 2003/02/26 20:04:43 UTC

How to exclude *.jsp but include index.jsp

I am creating a zip file like so:
<zip destfile="webserver.zip" basedir="${src}" includes="jsp/**"
excludes="**/WEB-INF/,**/*.jsp" update="false"/>

There are many jsps in the jsp directory, but we only want to include one of
them in the zip, index.jsp. How can I do this?

None of these includes the index.jsp specified in the includes:

<zip destfile="webserver.zip" basedir="${src}"
includes="jsp/**,**/index.jsp" excludes="**/WEB-INF/,**/*.jsp"
update="false"/>

<zip destfile="webserver.zip" basedir="${src}"
includes="jsp/**,jsp/index.jsp" excludes="**/WEB-INF/,**/*.jsp"
update="false"/>

<zip destfile="webserver.zip" basedir="${src}"
includes="jsp/**,**/**index.jsp" excludes="**/WEB-INF/,**/*.jsp"
update="false"/>



How can I get this to work?

Ian.