鹿撹聞喘cobertura才tomcat
扮寂:2011-07-01
廣吭泣
俶勣Copy cobertura.jar式凪LIB欺TOMCAT/COMMON/LIB?
峪嗤輝TOMCAT購液議扮昨?嘉氏亟cobertura.ser猟周
化帶
start up tomcat
build war
deploy web application
web test
undeploy
shut down
coverage report
現build.xml
<project name="KSystem" default="smoketest" basedir=".">
<property environment="env"/>
<property name="checkstyle.dir" value="${env.CHECKSTYLE_HOME}" />
<path id="checkstyle.classpath">
<fileset dir="${checkstyle.dir}">
<include name="checkstyle-all-4.1.jar" />
</fileset>
</path>
<property name="cobertura.dir" value="${env.COBERTURA_HOME}" />
<path id="cobertura.classpath">
<fileset dir="${cobertura.dir}">
<include name="cobertura.jar" />
</fileset>
</path>
<taskdef name="jcsc" classname="rj.tools.jcsc.ant.JCSCTask" classpath="${env.JCSC_HOME}/lib/jcsc.jar" />
<taskdef resource="checkstyletask.properties" classpathref="checkstyle.classpath" />
<taskdef classpathref="cobertura.classpath" resource="tasks.properties" />
<taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpath="${env.PMD_HOME}/lib/pmd-3.7.jar"/>
<!-- master build -->
<property name="project.dir" value="${basedir}" />
<property name="project.lib.dir" value="${project.dir}/WEB-INF/lib" />
<property name="build.dir" value="${basedir}/build" />
<property name="out.dir" value="${build.dir}" />
<property name="out.file.name" value="${ant.project.name}" />
<property name="classes.dir" value="${out.dir}/classes" />
<property name="src.dir" value="${project.dir}/src" />
<property name="webtests.dir" value="${project.dir}/webtests" />
<property name="instrumented.dir" value="${out.dir}/instrumented" />
<property name="cvs.repository" value=":pserver:ci:ci@192.168.126.10:/KSystem"/>
<property name="cvs.package" value="${ant.project.name}"/>
<target name="checkout">
<cvs command="update -d -P"/>
</target>
<target name="qa.build" description="build java file including cobertura for coverage test">
<javac target="1.4"
source="1.4"
destdir="${classes.dir}"
debug="
|