You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by mk...@apache.org on 2005/03/11 17:53:05 UTC
cvs commit: db-ojb build.xml
mkalen 2005/03/11 08:53:05
Modified: . build.xml
Log:
Encapsulate all Emma init settings in separate coverage-init task. (Resolves Gump warnings about missing emma_ant.properties.)
Revision Changes Path
1.167 +25 -23 db-ojb/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/db-ojb/build.xml,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -r1.166 -r1.167
--- build.xml 19 Feb 2005 21:42:53 -0000 1.166
+++ build.xml 11 Mar 2005 16:53:05 -0000 1.167
@@ -1603,52 +1603,54 @@
<!-- the classes must already be compiled ! -->
<!-- ================================================================== -->
- <!-- output directory used for EMMA coverage reports: -->
- <property name="coverage.dir" value="${basedir}/coverage" />
-
- <!-- directory that contains emma.jar and emma_ant.jar: -->
- <property name="emma.dir" value="${lib}" />
-
- <!-- path element used by EMMA taskdef below: -->
- <path id="emma.lib" >
- <pathelement location="${emma.dir}/emma.jar" />
- <pathelement location="${emma.dir}/emma_ant.jar" />
- </path>
-
- <!-- this loads <emma> and <emmajava> custom tasks: -->
- <taskdef resource="emma_ant.properties" classpathref="emma.lib" />
+ <target name="coverage-init" depends="init">
+ <!-- output directory used for EMMA coverage reports: -->
+ <property name="coverage.dir" value="${basedir}/coverage" />
+
+ <!-- directory that contains emma.jar and emma_ant.jar: -->
+ <property name="emma.dir" value="${lib}" />
+
+ <!-- path element used by EMMA taskdef below: -->
+ <path id="emma.lib" >
+ <pathelement location="${emma.dir}/emma.jar" />
+ <pathelement location="${emma.dir}/emma_ant.jar" />
+ </path>
+
+ <!-- this loads <emma> and <emmajava> custom tasks: -->
+ <taskdef resource="emma_ant.properties" classpathref="emma.lib" />
+ </target>
<!-- coverage for pb-api -->
- <target name="coverage_pb" depends="prepare-testdb" description="runs the examples" >
+ <target name="coverage_pb" depends="coverage-init,prepare-testdb"
+ description="Code coverage test for PB layer" >
<emmajava enabled="true" libclasspathref="emma.lib"
fullmetadata="yes" filter="org.apache.ojb.broker.*" sourcepath="${src.java}"
classname="org.apache.ojb.broker.AllTests"
- classpathref="runtime-classpath"
- >
+ classpathref="runtime-classpath">
<txt outfile="${coverage.dir}_pb/coverage.txt" />
<html outfile="${coverage.dir}_pb/coverage.html" />
</emmajava>
</target>
<!-- coverage for odmg-api -->
- <target name="coverage_odmg" depends="prepare-testdb" description="runs the examples" >
+ <target name="coverage_odmg" depends="coverage-init,prepare-testdb"
+ description="Code coverage test for ODMG layer">
<emmajava enabled="true" libclasspathref="emma.lib"
fullmetadata="yes" filter="org.apache.ojb.odmg.*" sourcepath="${src.java}"
classname="org.apache.ojb.odmg.AllTests"
- classpathref="runtime-classpath"
- >
+ classpathref="runtime-classpath">
<txt outfile="${coverage.dir}_odmg/coverage.txt" />
<html outfile="${coverage.dir}_odmg/coverage.html" />
</emmajava>
</target>
<!-- coverage for otm-api -->
- <target name="coverage_otm" depends="prepare-testdb" description="runs the examples" >
+ <target name="coverage_otm" depends="coverage-init,prepare-testdb"
+ description="Code coverage test for OTM layer">
<emmajava enabled="true" libclasspathref="emma.lib"
fullmetadata="yes" filter="org.apache.ojb.otm.*" sourcepath="${src.java}"
classname="org.apache.ojb.otm.AllTests"
- classpathref="runtime-classpath"
- >
+ classpathref="runtime-classpath">
<txt outfile="${coverage.dir}_otm/coverage.txt" />
<html outfile="${coverage.dir}_otm/coverage.html" />
</emmajava>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org