1.下載jsch-0.1.24.jar及commons-net-ftp-2.0.jar
2.設置eclipse: window -- preferences -- ant -- Runtime -- Ant Home Entries (Default)下填加上面兩個包即可在eclipse 的所有工程里使用這些功能,挺爽
3.ant task 網上很多,搜一下,推薦參考:http://www.tkk7.com/Good-Game/archive/2009/03/13/248113.html
4.ftp task:
<target name="ftp" depends="compile">
<ftp server="192.168.223" port="21" userid="work" password="abc123" remotedir="/home/work/coin/WEB-INF/lib/" depends="yes" verbose="yes">
<fileset dir="dist">
<include name="*.jar" />
</fileset>
</ftp>
</target>
posted on 2009-07-01 16:36
一凡 閱讀(848)
評論(0) 編輯 收藏 所屬分類:
JAVA IDE