coverage.xml.svn-base
来自「cqME :java framework for TCK test.」· SVN-BASE 代码 · 共 81 行
SVN-BASE
81 行
<?xml version="1.0"?><!-- $Id$ Copyright 1996-2007 Sun Microsystems, Inc. All Rights Reserved. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 only, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details (a copy is included at /legal/license.txt). You should have received a copy of the GNU General Public License version 2 along with this work; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, CA 95054 or visit www.sun.com if you need additional information or have any questions.--><project name="coverage"> <target name="emma-instrument" depends="dist-framework" description="Instruments _all_ jars via Emma. Note: Jars for J2ME might not work."> <property name="coverage.dir" location="${build}/coverage"/> <!-- We use this variable in unit-tests.xml, be careful when renaming --> <property name="coverage.enabled" value="true"/> <delete dir="${coverage.dir}"/> <echo message="Enabling Emma..."/> <property name="emma.enabled" value="true"/> <fail message="EMMA_DIR is undefined" unless="EMMA_DIR"/> <property name="emma.dir" location="${EMMA_DIR}"/> <path id="coverage.lib"> <pathelement location="${emma.dir}/emma.jar" /> <pathelement location="${emma.dir}/emma_ant.jar" /> </path> <taskdef resource="emma_ant.properties" classpathref="coverage.lib" /> <emma enabled="${emma.enabled}"> <instr mode="overwrite" outfile="${coverage.dir}/coverage.metadata"> <instrpath> <fileset dir="${tcklib}" includes="*.jar"/> </instrpath> <filter includes="com.sun.*" excludes="com.sun.tck.cldc.javatest.util.UTFConverter com.sun.tck.j2me.services.messagingService"/> </instr> </emma> </target> <target name="unit-tests-coverage" depends="emma-instrument, unit-tests" description="Executes unit tests, calculates coverage via Emma."> <!-- emma report task --> <emma enabled="${emma.enabled}" > <report depth="method" > <fileset dir="${coverage.dir}" includes="coverage.emma, coverage.metadata"/> <sourcepath> <dirset dir="${src}/share/classes"/> </sourcepath> <html outfile="${coverage.dir}/coverage.html"/> <xml outfile="${coverage.dir}/coverage.xml" depth="method"/> </report> </emma> </target></project>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?