ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David McTavish <>
Subject RE: How to exclude *.jsp but include index.jsp
Date Wed, 26 Feb 2003 19:32:58 GMT
<zip destfile="" basedir="${src}" update="false">
    <fileset dir="${src}">
        <include name="jsp/**"/>
        <exclude name="**/WEB-INF,**/*.jsp"/>
    <fileset dir="${src}">
        <include name="jsp/index.jsp"/>

-----Original Message-----
From: Ian Zabel []
Sent: Wednesday, February 26, 2003 2:31 PM
Subject: How to exclude *.jsp but include index.jsp

I am creating a zip file like so:
<zip destfile="" 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="" basedir="${src}"
includes="jsp/**,**/index.jsp" excludes="**/WEB-INF/,**/*.jsp"

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

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

How can I get this to work?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message