ant-user mailing list archives

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

-----Original Message-----
From: Ian Zabel [mailto:ian@ezabel.com]
Sent: Wednesday, February 26, 2003 2:31 PM
To: user@ant.apache.org
Subject: 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.





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

Mime
View raw message