<target name="zip_up">
<tstamp/>
<zip destfile="pbls/PBL_${DSTAMP}_${TSTAMP}.zip">
<fileset dir="./../kxkj_MIS">
<include name="*.pbl"/>
</fileset>
</zip>
<ftp server="192.168.2.81"
remotedir="kxkj_MIS_back"
userid="guest"
password="guest"
depends="yes"
>
<fileset dir="pbls">
<include name="PBL_${DSTAMP}_${TSTAMP}.zip"/>
</fileset>
</ftp>
</target>
//ant使用ftp命令时所需要的额外包两个
jakarta-oro-2.0.7.jar
http://jakarta.apache.org/oro/
<?xml version="1.0"?>
<project name="sql" default="sql">
<target name="sql">
<sql
driver="org.database.jdbcDriver"
url="jdbc:oracle:thin:@192.168.0.205:1521:southdb"
userid="zhujy"
password="zhujy"
>
select sysdate from dual;
</sql>
</target>
</project>
需要把jdbc oracle放入ant的lib里
posted on 2006-05-12 13:12
happytian 阅读(409)
评论(0) 编辑 收藏