<!()删除目录>
<!()建立目录>
<delete dir=\${root}/dist/\/>
<mkdir dir=\${root}/dist/\/>
<delete dir=\${deploy_path}\/>
<mkdir dir=\${deploy_path}\/>
<!()拷贝文件群>
<copy todir=\${root}/dist/\>
<fileset dir=\${root}/oa/\>
<include name=\*class\/>
</fileset>
</copy>
<!()jar为一个包>
<jar jarfile=\${deploy_path}/classjarjar\ basedir=\${root}/dist\ update=\yes\></jar>
<!()拷贝单个文件(上边是文件群这是单个文件)>
<copy file=\${deploy_path}/classjarjar\ todir=\${root}/dist/\/>
</target>
<!()运行(args中是参数随应用程序的具体情况有所不同)>
<target name=\simplesql\ depends=\compiledb_setup_oracle\> [Page]
<java classname=\examplesjdbcoraclesimplesql\
fork=\yes\ failonerror=\yes\
args=\user zrb
password zrb
\/>
</project>
[] [] []