读书人

ant封装之排除特定文件

发布时间: 2012-08-26 16:48:05 作者: rapoo

ant打包之排除特定文件

<copy todir="${build.dir}" overwrite="true"> <fileset dir="${src.dir}">    <exclude name="**/*.java" /> <!-- 排除所有java文件 -->    <exclude name="helloworld/" /> <!-- 排除根目录下整个helloworld文件夹 -->    <exclude name="**/test/" /> <!-- 排除test子目录本身及其子目录下的所有文件夹 -->  </fileset></copy>

读书人网 >编程

热点推荐