ant封装之排除特定文件

ant打包之排除特定文件copy todir${build.dir} overwritetrue fileset dir${src.dir}exclud

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>