<project basedir="." default="all" name="paas_dev">
<target name="init" description="init var">
<property name="src" value="${basedir}/src"/>
<property name="resource" value="${basedir}/resource"/>
<property name="webapp" value="${basedir}/webapp"/>
<property name="build" value="${basedir}/build"/>
<property name="build.portal" value="${build}/portal"/>
<property name="build.portal.WEB-INF" value="${build.portal}/WEB-INF"/>
<property name="classes" value="${build.portal.WEB-INF}/classes"/>
<path id="classpath">
<fileset dir="${webapp}/WEB-INF/lib">
<include name="**/*.jar"/>
</fileset>
</path>
</target>
<target name="clean" description="Remove all the temp files and directories">
<delete dir="${build}"/>
</target>
<target name="prepare" description="">
<mkdir dir="${classes}"/>
</target>
<target name="build" description="">
<javac srcdir="${src}" destdir="${classes}" debug="true" deprecation="on" encoding="UTF-8">
<classpath refid="classpath"/>
</javac>
<copy todir="${classes}/">
<fileset dir="${src}">
<include name="**/sqlmap/*.xml"/>
</fileset>
</copy>
<copy todir="${classes}">
<fileset dir="${resource}"/>
</copy>
<copy todir="${build.portal}/">
<fileset dir="${webapp}"/>
</copy>
</target>
<target name="all" depends="init,clean,prepare,build">
</target>
</project>
分享到:
相关推荐
ant做的一个小例子,里面有build.xml的详细配置,导入myEclipse后可直接运行。
演示 build.xml 是编写方法,适合 ant build 初学者,解压,进入 ant 目录, 运行命令 ant 既可
对build.xml文件中用到的标签进行了详尽的解说,并且附有例子,ant build.xml文件详解
经过几天学习,总结出ant build.xml的基本版,实现了: <!--初始化操作--> <!--拷贝操作--> <!--编译--> <!--war打包--> 执行顺序为: <!--project的default属性为build,所以本target...
我的开发环境是Eclipse,ant.xml是放在项目下的ant(新建),也可以修改project的basedir.
ANT Build.xml 自动编译
jmeter+ant 持续集成build.xml文件,直接使用ant命令执行jmeter脚本文件,得到图形测试报告
ANT Build.xml 自动编译
ant build.xml demo 供自己及好友学习,能很快上手
NULL 博文链接:https://siwind.iteye.com/blog/1473839
Ant_build.xml配置实例,Ant的详细配置,很实用
NULL 博文链接:https://kanpiaoxue.iteye.com/blog/1995837
开源ant的build.xml的一些属性配置,内含 几个例子。比较实用
ANT-build.xml文件详解 ANT-build.xml文件详解 ANT-build.xml文件详解 ANT-build.xml文件详解
NULL 博文链接:https://aga.iteye.com/blog/567060
ant打包项目的build.xml配置
第一次做jmeter+ant自动化接口测试,需要build文件,开始直接copy博客中的内容,格式不对,调试好久不成功;后发现在jmeter/extras文件夹中有一个build文件,copy出来根据需要修改下,成功了,特上传自选供大家使用...
Python写的一个程序,可以生成java开发中ANT工具所需的build.xml文件。