比较常用的一个ant文件

比较常用的一个ant文件,需要的从这里下载

 0: <?xml version="1.0"?>
 1: <!-- 
 2: 	@author:火守
 3: 	@email:34298824@qq.com
 4:  -->
 5: <project name="shell Application" basedir="." default="all">
 6: 	<target name="init">
 7: 		<property name="desc" value="timer http Application" />
 8: 		<!-- set you jar

-file-name -->
 9: 		<property name="jar-name" value="ant-blank" />
10: 		<property name="src.dir" value="src" />
11: 		<property name="lib.dir" value="lib" />
12: 		<property name="bin.dir" value="bin" />
13: 	</target>
14: 	<target name="classpath">
15: 		<path id="local.class.path">
16: 			<fileset dir="${src.dir}/lib" includes="*.jar" />
17: 		</path>
18: 	</target>
19: 	<target name="clean">
20: 		<delete dir="${bin.dir}" />
21: 	</target>
22: 	<target name="prepare">
23: 		<mkdir dir="${bin.dir}/classes" />
24: 		<mkdir dir="${bin.dir}/lib" />
25: 	</target>
26: 	<target name="prepare-docs" depends="init">
27: 		<mkdir dir="${bin.dir}/javadocs" />
28: 	</target>
29: 	<target name="classes" depends="prepare,classpath,init">
30: 		<javac debug="on" deprecation="on" destdir="${bin.dir}/classes">
31: 			<classpath>
32: 				<path refid="local.class.path" 

/>
33: 			</classpath>
34: 			<src path="${src.dir}" />
35: 		</javac>
36: 		<copy todir="${bin.dir}">
37: 			<fileset dir="${src.dir}" includes="**/*.properties,**/*.xml,**/*.bat" />
38: 		</copy>
39: 		<copy todir="${bin.dir}/lib">
40: 			<fileset dir="${src.dir}/lib" includes="**/*.jar" />
41: 		</copy>
42: 	</target>
43: 	<target name="jar" depends="classes">
44: 		<jar jarfile="${bin.dir}/${jar-name}.jar" basedir="${bin.dir}/classes" />
45: 	</target>
46: 	<target name="docs" depends="prepare-docs,classpath">
47: 		<!-- set you 

package-name -->
48: 		<javadoc packagenames="com.smz.http.*" classpathref="local.class.path" destdir="${bin.dir}/javadocs">
49: 			<sourcepath path="${src.dir}" />
50: 		</javadoc>
51: 	</target>
52: 	<target name="all" depends="init,jar,docs" />
53: </project>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值