Ant中的 Default Excludes概念是什么

<!--StartFragment -->Ant的基于目录和文件的task操作中默认将排除一些情况的匹配模版,下面是Ant文档中的描述。

Default Excludes

举个简单的例子,你在使用jar 打包时,他不会将你源目录中的CVS目录打包在你的jar中,应为他是包含在Default Excludes列表中的。如果你的操作需要包括Default Excludes中定义的匹配项,那么你可以<!--StartFragment --> defaultexcludes="no" 属性禁止掉Default Excludes,或者也可以使用Defaultxcludes task 修改默认的模式匹配列表,比如add、remove匹配项。例如<!--StartFragment --> <defaultexcludes remove="**/*~"/>



There are a set of definitions that are excluded by default from all directory-based tasks. They are:

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

你可能感兴趣的:(ant,SVN,cvs)