I would add a "/" after the excludes 

<zip excludes="${dist}/, ${build}/"/>


Jan


>-----Ursprüngliche Nachricht-----
>Von: Andreas Dahlén [mailto:andr...@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-unsubscr...@ant.apache.org
>For additional commands, e-mail: user-h...@ant.apache.org
>
>

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

Reply via email to