Files
jacoco-demo/jenkins-build.xml
2020-10-26 22:03:50 +08:00

14 lines
714 B
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<project name="JacocoDemo" xmlns:jacoco="antlib:org.jacoco.ant" default="jacoco">
<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
<classpath path="${jacocoantPath}" />
</taskdef>
<!--dump 任务: 根据前面配置的 ip 地址,和端口号,访问目标 Tomcat 服务,并生成 .exec 文件。-->
<!-- reset="true"是指在dump完成之后重置jvm中的覆盖率数据为空。append="true"是指dump出来的exec文件为增量方式 -->
<target name="dump">
<jacoco:dump address="${server_ip}" reset="${reset}" destfile="${jacocoexecPath}" port="${server_port}" append="${append}"/>
</target>
</project>