You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Andreas Dahlén <an...@dahlen.ws> on 2009/05/29 09:51:23 UTC
Problem with excludes
Hi!
I've problem with excludes when creating a zip file.
I want to create a zip files containing all files in current
directory, but exclude two directories.
<!-- ZIP-task -->
<target name="createZIP">
<property name="build" location="bin"/>
<property name="dist" location="dist"/>
<zip destfile="${dist}/${ant.project.name}.zip" basedir="."
excludes="${dist}, ${build}"/>
</target>
/Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
AW: Problem with excludes
Posted by Ja...@rzf.fin-nrw.de.
I would add a "/" after the excludes
<zip excludes="${dist}/, ${build}/"/>
Jan
>-----Ursprüngliche Nachricht-----
>Von: Andreas Dahlén [mailto:andreas@dahlen.ws]
>Gesendet: Freitag, 29. Mai 2009 09:51
>An: user@ant.apache.org
>Betreff: Problem with excludes
>
>Hi!
>
>I've problem with excludes when creating a zip file.
>I want to create a zip files containing all files in current
>directory, but exclude two directories.
>
>
><!-- ZIP-task -->
><target name="createZIP">
><property name="build" location="bin"/>
><property name="dist" location="dist"/>
><zip destfile="${dist}/${ant.project.name}.zip" basedir="."
>excludes="${dist}, ${build}"/>
></target>
>
>/Andreas
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Problem with excludes
Posted by alsen <mi...@gmx.net>.
<!-- ZIP-task -->
<target name="createZIP">
<property name="build" value="bin/**"/>
<property name="dist" value="dist/**"/>
<zip destfile="${ant.project.name}.zip" basedir="." excludes="${dist},
${build}"/>
</target>
Michael
Wroopy wrote:
>
> Hi!
>
> I've problem with excludes when creating a zip file.
> I want to create a zip files containing all files in current
> directory, but exclude two directories.
>
>
> <!-- ZIP-task -->
> <target name="createZIP">
> <property name="build" location="bin"/>
> <property name="dist" location="dist"/>
> <zip destfile="${dist}/${ant.project.name}.zip" basedir="."
> excludes="${dist}, ${build}"/>
> </target>
>
> /Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Problem-with-excludes-tp23775800p23778724.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org