首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

ant封装之排除特定文件

2012-08-26 
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>

热点排行