db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb build.xml
Date Thu, 21 Oct 2004 19:24:24 GMT
brj         2004/10/21 12:24:24

  Modified:    .        build.xml
  Added:       lib      emma_ant.jar emma.jar
  Log:
  added ant-targets to measure code-coverage based on emma (http://emma.sourceforge.net)
  
  Revision  Changes    Path
  1.1                  db-ojb/lib/emma_ant.jar
  
  	<<Binary file>>
  
  
  1.1                  db-ojb/lib/emma.jar
  
  	<<Binary file>>
  
  
  1.153     +61 -2     db-ojb/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/build.xml,v
  retrieving revision 1.152
  retrieving revision 1.153
  diff -u -r1.152 -r1.153
  --- build.xml	12 Aug 2004 17:05:22 -0000	1.152
  +++ build.xml	21 Oct 2004 19:24:23 -0000	1.153
  @@ -64,6 +64,7 @@
   
       <property name="runtime.classpath" refid="runtime-classpath"/>
   
  +
       <!-- ================================================================== -->
       <!-- I N I T                                                            -->
       <!-- ================================================================== -->
  @@ -1524,8 +1525,66 @@
   		</jar>
   	</target>
   
  +<!-- ================================================================== -->
  +<!-- emma coverage, on the-fly-instrumentation          				-->
  +<!-- see http://emma.sourceforge.net                                    -->
  +<!-- 								                                    -->
  +<!-- 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" />
  +
  +   <!-- coverage for pb-api -->
  +  <target name="coverage_pb" depends="prepare-testdb" description="runs the examples"
>
  +    <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"
  +    >
  +      <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"
>
  +    <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"
  +    >
  +      <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"
>
  +    <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"
  +    >
  +      <txt outfile="${coverage.dir}_otm/coverage.txt" />
  +      <html outfile="${coverage.dir}_otm/coverage.html"  />
  +    </emmajava>
  +  </target>
  +
       <!-- ================================================================== -->
       <!-- End of targets                                                     -->
       <!-- ================================================================== -->
   
  -</project>
  +</project>
  \ No newline at end of file
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message