5 Star 1 Fork 0

豆盼/网瘾早该电电了

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.xml 1.95 KB
一键复制 编辑 原始数据 按行查看 历史
豆盼 提交于 2023-12-15 14:41 . build
<?xml version="1.0" ?>
<project name ="javacTest" default="run" basedir=".">
<record name="./log4j.log" loglevel="info" append="no" action="start"/>
<!-- 定义全局变量 -->
<property name="dest" value="./build/classes" />
<property name="testng.output.dir" value="./test-output"/>
<property name="testng.report.dir" value="./test-output/report"/>
<!-- <javac-->
<!-- encoding="utf-8"-->
<!-- destdir="${dest}"-->
<!-- includeAntRuntime="no"-->
<!-- debug="on"-->
<!-- source="1.5"-->
<!-- target="1.5"-->
<!-- >-->
<!-- <src path="src"/>-->
<!-- </javac>-->
<!-- 定义类路径 -->
<path id="classes">
<fileset dir="libs" includes="*.jar"/>
<pathelement location="${dest}"/>
</path>
<taskdef resource="testngtasks" classpath="libs/testng-6.9.10.jar"/>
<target name="clean">
<delete dir="${dest}"/>
</target>
<!-- 编译 src目录 -->
<target name="compile" depends ="clean">
<mkdir dir ="${dest}"/>
<javac srcdir="src" destdir="${dest}" debug="on" deprecation="on" optimize="off" classpathref="classes" includeantruntime="on" >
<compilerarg line="-encoding UTF-8 "/>
</javac>
</target>
<!-- &lt;!&ndash; 运行 &ndash;&gt;-->
<!-- <target name="compile" depends="prepare" description="编绎">-->
<!-- <javac srcdir="${src.dir}" destdir="${build.classes.dir}" debug="on" deprecation="on" optimize="off" includes="**">-->
<!-- &lt;!&ndash;给编译器指定编码,防止出现:"警告: 编码 GBK 的不可映射字符"&ndash;&gt;-->
<!-- <classpath refid="build.classpath" />-->
<!-- </javac>-->
<!-- </target>-->
<target name="run" depends ="compile">
<testng outputdir="${testng.output.dir}" classpathref="classes" >
<xmlfileset dir="." includes="testng.xml"/>
</testng>
</target>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/doupan/wangyinzaogaodiandianle.git
git@gitee.com:doupan/wangyinzaogaodiandianle.git
doupan
wangyinzaogaodiandianle
网瘾早该电电了
master

搜索帮助