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>

 

posted @ 2020-11-23 11:52  1156740846  阅读(629)  评论(0编辑  收藏  举报