What files are excluded from the Ant zip task by default?

I run the zip zip task for zip for the entire contents of the directory on Unix systems:

<zip destfile="${deploy}/test.zip">
    <zipfileset dir="/home/mydir" />
</zip>

After creating the zip and checking the contents, I see that some configuration files, specific Visual Studio files and others, such as the Mac OS.DS_STORE file, do not contain zip.

Is there any Ant rule to decide which files will not be included?

I need to know in advance, since I need to create a list of existing files in this directory before running (currently using Java). Right now, I am excluding all directories and hidden files (using the File.isHidden () and isDirectory () methods), but the list still gets part of the Ant lefts out file (e.g. vssver.scc

+3
source share
3 answers

:

<defaultexcludes echo="true"/>

http://ant.apache.org/manual/Tasks/defaultexcludes.html

, Ant taks, , zip-.

+3

Konstantin :

, . Ant 1.8.1 :

 **/*~
 **/#*#
 **/.#*
 **/%*%
 **/._*
 **/CVS
 **/CVS/**
 **/.cvsignore
 **/SCCS
 **/SCCS/**
 **/vssver.scc
 **/.svn
 **/.svn/**
 **/.DS_Store

Ant 1.8.2 :

 **/.git
 **/.git/**
 **/.gitattributes
 **/.gitignore
 **/.gitmodules
 **/.hg
 **/.hg/**
 **/.hgignore
 **/.hgsub
 **/.hgsubstate
 **/.hgtags
 **/.bzr
 **/.bzr/**
 **/.bzrignore
+5

All Articles