单个文件拷贝:
批量文件拷贝:
<copy file="${resources.dir}/MANIFEST.MF" tofile="${temp.dir.meta-inf}/MANIFEST.MF" overwrite="true" />
批量文件拷贝:
<copy todir="${temp.dir.classes}">
<fileset dir="${src.dir}">
<include name="**/*.xml"/>
<include name="**/*.xsl"/>
<include name="**/*.properties"/>
</fileset>
</copy>
<target name="test_copy">
<copy todir="d:/a" preservelastmodified="true" overwrite="true" verbose="true">
<fileset dir="d:/b">
<include name="**/*.*" />
<exclude name="**/classes/*"/>
<exclude name="**/lib/*"/>
<patternset refid="no.svn" />
<patternset refid="no.bak" />
</fileset>
</copy>
</target>