<property <property <property <property <property <property
name="src.dir" value="src" /> name="report.dir" value="report" /> name="classes.dir" value="classes" /> name="lib.dir" value="lib" /> name="dist.dir" value="dist" /> name="doc.dir" value="doc"/>
<!-- 定义 classpath --> <path id="master-classpath"> <fileset file="${lib.dir}/*.jar" /> <pathelement path="${classes.dir}"/> </path> <!-- 初始化任务 --> <target name="init"> </target> <!-- 编译 --> <target name="compile" depends="init" description="compile the source files"> <mkdir dir="${classes.dir}"/> <javac srcdir="${src.dir}" destdir="${classes.dir}" target="1.4"> <classpath refid="master-classpath"/> </javac> </target> <!-- 测试 --> <target name="test" depends="compile" description="run junit test" > <mkdir dir="${report.dir}"/> <junit printsummary="on" haltonfailure="false" failureproperty="tests.failed" showoutput="true"> <classpath refid="master-classpath" /> <formatter type="plain"/> <batchtest todir="${report.dir}"> <fileset dir="${classes.dir}"> <include name="**/*Test.*"/> </fileset> </batchtest> </junit> <fail if="tests.failed"> ***********************************************************

eclipse 之ant 使用_计算机软件及应用_IT/计算机_专业资料。介绍在ECLIPSE开发环境中使用ant的技巧Eclipse 之 ANT 使用 2010-11-16 11:44:42
eclipse使用ANT方法_IT/计算机_专业资料。1. 再项目中找到 bulid.xml 构建文件,点击右键出现菜单 2. 或者到窗口,打开视图中打开 ANT 然后,再 ANT 中点右键,...
Eclipse 快速上手指南之使用 ANT 2005-06-09 点击:12 来源:J2ME 开发网 作者:J2ME 开发网 Ant 是 Java 平台下非常棒的批处理命令执行程序,能非常方便地自动...
Eclipse 中使用 Ant Eclipse 很好地集成了 Ant,我们可以在 Eclipse 中编写和运行 build.xml。 选择“Window→Preference”,可以看到 Ant 的配置,如图 9-1 所示...
eclipse中使用ANT构建图解_理学_高等教育_教育专区。eclipse中使用ANT构建图解Ant 是 Java 平台下非常棒的批处理命令执行程序,能非常方便地自动完 成编译,打包等等...
在Eclipse 中使用 Ant 2009-11-23 23:09 Ant 是 Java 平台下非常棒的批处理命令执行程序,能非常方便地自动完成编译, 测试,打包,部署等等一系列任务,大大提高...
Eclipse使用Ant进行远程部署_计算机软件及应用_IT/计算机_专业资料。Eclipse 使用 Ant 进行远程部署一、Ant 简介 Apache Ant是一个基于Java的构建工具。从理论上讲...
在eclipse中使用ant灵活构建web应用_计算机软件及应用_IT/计算机_专业资料。在eclipse中使用ant灵活构建web应用在eclipse 中使用 ant 灵活构建 web 应用 ant 是 ...
本章主要介绍 Ant 的基础知识以及如何在 Eclipse 中使用 Ant 插件。 7.1 Ant 简介对于一个庞大的项目,每次都要重新编译、打包、测试和部署,这些操重复繁琐。C ...
利用Ant 和 Eclipse 有效地提高部署工作效率 内容摘要:本文主要介绍 Ant 在多用户开发的情况下,如何用 Eclipse,并 且根据不同的目标环境编译不同的部署包. 文中...
热门文档