Ant的安装使用
<?xml?version="1.0"?encoding="GBK"?>
2<project?name="测试脚本"?default="copyfile"?basedir="."?>
3???<target?name="copyfile">
4??????<copy?file="d:/a.txt"?todir="e:/Temp"?overwrite="true"?/>
5???</target>
6</project>
(2)在D盘根目录下建立文件a.txt。
(3)进入dos,
?????????d:
?????????ant
?????????
?????????此时可在E:/Temp目录下见到文件aa.txt,内容与a.txt一样,即拷贝成功!