You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Lars George <la...@gmail.com> on 2010/01/26 12:27:22 UTC
clover target
Hi,
in the included contrib build-contrib.xml I see these:
<target name="clover" depends="clover.setup, clover.info"
description="Instrument the Unit tests using Clover. To use,
specify -Dclover.home=<base of clover installation>
-Drun.clover=true on the command line."/>
<target name="clover.setup" if="clover.enabled">
<taskdef resource="cloverlib.xml" classpath="${clover.jar}"/>
<mkdir dir="${clover.db.dir}"/>
<clover-setup initString="${clover.db.dir}/hbase_coverage.db">
<fileset dir="src" includes="java/**/*"/>
</clover-setup>
</target>
They "cause" clover to presented for all contrib packages, like the
jmxtoolkit I am working on:
$ ant -p
Buildfile: build.xml
Main targets:
clover Instrument the Unit tests using Clover. To use,
specify -Dclover.home=<base of clover installation> -Drun.clover=true
on the command line.
create-properties Allows to create a specifc properties file.
jar Compile and jar the project.
Default target: jar
I wonder if the "clover" target should also have a "if" in it, like so:
<target name="clover" depends="clover.setup, clover.info" if="clover.enabled"
description="Instrument the Unit tests using Clover. To use,
specify -Dclover.home=<base of clover installation>
-Drun.clover=true on the command line."/>
Thoughts?
Lars
Re: clover target
Posted by Stack <st...@duboce.net>.
Who looks at clover reports? Do whatever you need to do Lars to make
your life easier.
St.Ack
On Tue, Jan 26, 2010 at 3:27 AM, Lars George <la...@gmail.com> wrote:
> Hi,
>
> in the included contrib build-contrib.xml I see these:
>
> <target name="clover" depends="clover.setup, clover.info"
> description="Instrument the Unit tests using Clover. To use,
> specify -Dclover.home=<base of clover installation>
> -Drun.clover=true on the command line."/>
>
> <target name="clover.setup" if="clover.enabled">
> <taskdef resource="cloverlib.xml" classpath="${clover.jar}"/>
> <mkdir dir="${clover.db.dir}"/>
> <clover-setup initString="${clover.db.dir}/hbase_coverage.db">
> <fileset dir="src" includes="java/**/*"/>
> </clover-setup>
> </target>
>
> They "cause" clover to presented for all contrib packages, like the
> jmxtoolkit I am working on:
>
> $ ant -p
> Buildfile: build.xml
>
> Main targets:
>
> clover Instrument the Unit tests using Clover. To use,
> specify -Dclover.home=<base of clover installation> -Drun.clover=true
> on the command line.
> create-properties Allows to create a specifc properties file.
> jar Compile and jar the project.
> Default target: jar
>
> I wonder if the "clover" target should also have a "if" in it, like so:
>
> <target name="clover" depends="clover.setup, clover.info" if="clover.enabled"
> description="Instrument the Unit tests using Clover. To use,
> specify -Dclover.home=<base of clover installation>
> -Drun.clover=true on the command line."/>
>
> Thoughts?
>
> Lars
>