56 Commits

Author SHA1 Message Date
vmassol
758ddc2def MPCLOVER-30: When calling <code>clover:on</code> a second time, an updated <code>maven.compile.src.set</code> was ignored.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@179212 13f79535-47bb-0310-9956-ffa450edef68
2005-05-31 12:34:23 +00:00
vmassol
f6a0fdfdae Use <j:expr>${... instead of ${... in order to prevent empty new lines being printed
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@178860 13f79535-47bb-0310-9956-ffa450edef68
2005-05-28 07:49:09 +00:00
vmassol
cbea5e9e54 MPCLOVER-40: Fixed the <code>clover:test-single</code> goal which was wrongly calling the <code>clover:swing-report-internal</code> (should have been <code>clover:swing-report</code>). Thanks to Kristopher Brown.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@178791 13f79535-47bb-0310-9956-ffa450edef68
2005-05-27 16:35:03 +00:00
carlos
60c8b02029 Fixed MPCLOVER-38, maven:set doesn't allow null values
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@178218 13f79535-47bb-0310-9956-ffa450edef68
2005-05-24 17:51:45 +00:00
vmassol
489cf92482 MPCLOVER-37: <code>maven.test.failure.ignore</code> is now correctly reset when <code>clover:off</code> is called. Thanks to Carlos Sanchez.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@171219 13f79535-47bb-0310-9956-ffa450edef68
2005-05-21 15:02:21 +00:00
vmassol
e9155c7833 MPCLOVER-32: Fully disable Clover in <code>clover:off</code> so that the Clover compiler adapter delegates straight to the default compiler.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@171214 13f79535-47bb-0310-9956-ffa450edef68
2005-05-21 14:46:36 +00:00
vmassol
3144c23f3f Removed the <code>maven.clover.jar</code> property that was used to override the default Clover jar. This property was not working (it requires Ant 1.6) and is no needed anymore as Cenqua has cleanly separated the Clover jar from the Clover license. You only need to point <code>maven.clover.license.path</code> to your license file.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@171202 13f79535-47bb-0310-9956-ffa450edef68
2005-05-21 11:08:50 +00:00
vmassol
98d793400e - Added a quick usage guide in the documentation.
- Fixed issue where <code>clover:report</code> was not calling <code>clover:on</code> leading to an error when generating the reports.
- Ensure that <code>clover:init</code>, <code>clover:on</code> and <code>clover:off</code> can only be called once. For example calling <code>clover:on</code> twice in a row will execute it only once.
- The <code>clover:*-report</code> goals do not call <code>clover:test</code> anymore. They only generates Clover reports. This is now aligned with the <code>clover:report</code> behavior. To run the full thing, execute the <code>clover</code> goal or add the Clover report to your project's POM.
- Added a <code>maven.clover.multiproject</code> property that should be set to true in your master project (if you're using a multiproject setup). Setting it to true will make the <code>clover</code> goal and the <code>maven-clover-plugin</code> report in your POM execute on all subprojects (they'll call the new <code>clover:multiproject</code> goal).
- New <code>clover:multiproject</code> goal to run Clover on a multiproject setup.
- New <code>clover:merge</code> goal that creates a new Clover database by merging several other databases specified using the <code>maven.clover.merge.databases</code> property (which defaults to <code>**/clover_coverage.db</code>).


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@169652 13f79535-47bb-0310-9956-ffa450edef68
2005-05-11 16:28:26 +00:00
vmassol
b6d3b9eebc Fixed issue with Clover task and type definitions not using an explicit classpath which apparently breaks under Maven 1.1.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@169507 13f79535-47bb-0310-9956-ffa450edef68
2005-05-10 18:47:23 +00:00
vmassol
a578ec3c6f MPCLOVER-35: Always generate Clover reports even when there is no coverage data. One of the reason is that Clover generates metrics other than coverage percentage, like LOC and NCLOC which are useful in themselves.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@164270 13f79535-47bb-0310-9956-ffa450edef68
2005-04-22 19:15:46 +00:00
vmassol
5386f83f07 MPCLOVER-31: Added PDF report generation
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@160064 13f79535-47bb-0310-9956-ffa450edef68
2005-04-04 17:32:23 +00:00
vmassol
c65713089e Added support for historical reports by adding a new <code>clover:save-history</code> goal that saves a Clover history point. The history points are then used by <code>clover:report</code> to generate history reports (including a link on the Maven-generated website).
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@155182 13f79535-47bb-0310-9956-ffa450edef68
2005-02-24 12:39:06 +00:00
vmassol
c84cae6dfb Add support for method, statement and block context filtering through the following properties: <code>maven.clover.context.block.names</code>, <code>maven.clover.context.method.names</code>, <code>maven.clover.context.method.regexps</code>, <code>maven.clover.context.statement.names</code> and <code>maven.clover.context.statement.regexps</code>.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@154865 13f79535-47bb-0310-9956-ffa450edef68
2005-02-22 16:03:19 +00:00
vmassol
2685a5b196 Added new <code>clover:check</code> goal that verifies if the test coverage if above a threshold defined by the properties <code>maven.clover.check.target</code>, <code>maven.clover.check.packages</code> and <code>maven.clover.check.targets</code>. It fails the build if it's below.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@154360 13f79535-47bb-0310-9956-ffa450edef68
2005-02-18 22:17:54 +00:00
vmassol
bafb136d36 MPCLOVER-21: Do not create a Clover report link when the project has no tests.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@153426 13f79535-47bb-0310-9956-ffa450edef68
2005-02-11 17:40:41 +00:00
vmassol
ceafca8f59 MPCLOVER-22: Open Clover report page in a new window in the same manner as it's done for the Javadoc and XRef reports. Thanks to Mike Gabelmann.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@153424 13f79535-47bb-0310-9956-ffa450edef68
2005-02-11 17:22:40 +00:00
vmassol
605cce19dd MPCLOVER-25: Added <code>maven.clover.includes</code> and <code>maven.clover.excludes</code> properties to specify what files to include/exclude from the Cloverification. Thanks to Michael Gaffney.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@153422 13f79535-47bb-0310-9956-ffa450edef68
2005-02-11 17:06:48 +00:00
vmassol
10b1738df2 - Reorganized the plugin tests using a multiproject approach
- MPCLOVER-18: Added new <code>maven.clover.execute.during.report</code> property to control whether or not the <code>clover-report</code> goal builds Cloverify the sources and execute the tests (defaults to true).


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@153413 13f79535-47bb-0310-9956-ffa450edef68
2005-02-11 15:38:52 +00:00
vmassol
9b6891b63c - MPCLOVER-24: Deprecated <code>maven.clover.database.dir</code> property and replaced it with a <code>maven.cover.database</code> property that contains not only the database directory but also the name of the database file.
- MPCLOVER-28: <code>clover:off</clover> should now reset correctly the <code>maven.build.dest</code> property that <code>clover:on</code> modifies. Note that the reported error has been fixed even though I have not been able to reproduce the problem (and hence we don't have a test for it).
- MPCLOVER-26: Upgraded Clover to version 1.3.4.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@153185 13f79535-47bb-0310-9956-ffa450edef68
2005-02-10 07:29:43 +00:00
vmassol
230a3b920d MPCLOVER-23. The default compiler was not reset after the execution of the <code>clover:report/code> goal.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116105 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 12:19:50 +00:00
vmassol
98f8bc6611 Added ability for users to specify their own Clover license file by overriding the new <code>maven.clover.license.path</code> property.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115950 13f79535-47bb-0310-9956-ffa450edef68
2004-08-11 09:54:29 +00:00
carlos
395ce621cd Fixed typo
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115839 13f79535-47bb-0310-9956-ffa450edef68
2004-07-18 11:26:38 +00:00
vmassol
52892d03bf - Made the following goals public by documenting them: <code>clover:report</code>, <code>clover:on</code>, <code>clover:off</code>, <code>clover:test</code>, <code>clover:test-single</code>
- Added new <code>clover:test-single</code> goal to execute a single test case and to view the test coverage result directly using the Clover Swing viewer. This is useful if you wish to quickly see the action that a single unit test has on the code it tests.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115838 13f79535-47bb-0310-9956-ffa450edef68
2004-07-16 18:36:26 +00:00
vmassol
3e136f2c14 indentation fix
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115837 13f79535-47bb-0310-9956-ffa450edef68
2004-07-16 13:34:40 +00:00
vmassol
3b46aa77d2 Make the swing report work again with Clover 1.3
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115836 13f79535-47bb-0310-9956-ffa450edef68
2004-07-16 13:31:52 +00:00
vmassol
d0223f1eb1 Now using <code>maven:get</code> and <code>maven:set</code>.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115835 13f79535-47bb-0310-9956-ffa450edef68
2004-07-16 13:24:00 +00:00
vmassol
6943f3b2a0 Replaced ${context.getParent().setVariable('maven.build.dest',tmp)} with the much better <j:set var="maven.build.dest" value="${tmp}" scope="parent"/>
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115834 13f79535-47bb-0310-9956-ffa450edef68
2004-07-16 13:06:43 +00:00
vmassol
f378f2e17c The <code>clover:report</code> goal does not call the tests anymore. It only generates Clover reports.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115833 13f79535-47bb-0310-9956-ffa450edef68
2004-07-16 11:12:46 +00:00
vmassol
c231e2d1f9 When executing <code>clover:on</code> and <code>clover:off</code>, modify the <code>maven.build.dest</code> property value in the Root context of all plugins so that the value change is available in all Maven plugins.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115832 13f79535-47bb-0310-9956-ffa450edef68
2004-07-16 10:59:37 +00:00
vmassol
fbc42cc8af Prevented the <code>clover:on</code> goal from failing when there are no unit tests sources available.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115831 13f79535-47bb-0310-9956-ffa450edef68
2004-07-16 09:47:39 +00:00
vmassol
191e870e08 Updated to Clover Ant 1.3_01.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115764 13f79535-47bb-0310-9956-ffa450edef68
2004-07-10 13:04:46 +00:00
brett
b5f0b13758 update a bunch of plugin dependency usages
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115672 13f79535-47bb-0310-9956-ffa450edef68
2004-07-06 12:37:18 +00:00
brett
3ba2b96a88 rollback last change due to breakage
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115462 13f79535-47bb-0310-9956-ffa450edef68
2004-06-12 05:20:57 +00:00
brett
d3eb8282a7 PR: MPCLOVER-15
Make maven.clover.jar work


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115461 13f79535-47bb-0310-9956-ffa450edef68
2004-06-12 04:52:28 +00:00
vmassol
c48891dd9f Do not execute Clover if there are no tests to run Clover on. This prevents an error happening in the <code>clover:on</code> goal.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115093 13f79535-47bb-0310-9956-ffa450edef68
2004-04-30 08:21:06 +00:00
vmassol
b11afec96f Allow generating XML and/or Swing reports during the web site generation too.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115092 13f79535-47bb-0310-9956-ffa450edef68
2004-04-30 07:59:53 +00:00
vmassol
1bdd755463 - Fixed plugin test
- Added developement documentation
- Cleaned up plugin.jelly
- Fixed clover:on goal which should be able to be considered as a public goal now. Need more test though. If it works fine, it should be documented to goals.xml.
- Added clover:off goal (internal goal for now) that restores properties in same state before call to clover:on


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114973 13f79535-47bb-0310-9956-ffa450edef68
2004-04-02 21:12:02 +00:00
evenisse
9a278f5c42 Update to ASL v.2
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114791 13f79535-47bb-0310-9956-ffa450edef68
2004-03-04 18:05:31 +00:00
vmassol
586924c6b9 Allows the user to override the Clover jar. This is especially useful as the Clover jars are license-signed for a specific project so you might want to use different jars for different projects.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114451 13f79535-47bb-0310-9956-ffa450edef68
2003-12-05 17:38:39 +00:00
vmassol
2b27d00da4 Now supports several compile and test directory sets.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114446 13f79535-47bb-0310-9956-ffa450edef68
2003-12-05 14:17:22 +00:00
vmassol
63bd98ded5 Conditionally instrument test classes too. To instrument test classes set the <code>maven.clover.instrument.tests</code> to <code>true</code>.
Note: This feature is still limited. it will only work if there is one path in maven.compile.src.set and maven.test.compile.src.set Ant paths


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114443 13f79535-47bb-0310-9956-ffa450edef68
2003-12-04 21:46:36 +00:00
vmassol
9fe862664c - Make sure that the clover plugin restore other plugin's properties it has modified.
- Removed public <code>clover:on</code> goal as it should not have been public.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114426 13f79535-47bb-0310-9956-ffa450edef68
2003-11-29 17:15:33 +00:00
vmassol
2c67911f11 Removed unused commented line
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114294 13f79535-47bb-0310-9956-ffa450edef68
2003-11-10 12:09:38 +00:00
vmassol
51a1ec3b77 Fixed typo. Sorry guys.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114284 13f79535-47bb-0310-9956-ffa450edef68
2003-11-09 20:48:33 +00:00
vmassol
4993ca3f5d Prevent the plugin from failing if the project on which it is run has no java sources/test sources.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114268 13f79535-47bb-0310-9956-ffa450edef68
2003-11-06 07:02:30 +00:00
vmassol
226a5936b5 Added optional properties to decide what reports to generate. Added a <code>clover:report</code> goal which generates all the defined reports. The default is to generate only the HTML report.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114265 13f79535-47bb-0310-9956-ffa450edef68
2003-11-05 19:01:47 +00:00
dion
743b0e4293 Apply MAVEN-819
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114086 13f79535-47bb-0310-9956-ffa450edef68
2003-09-24 05:14:53 +00:00
dion
1d6c924c9d MAVEN-548. Move common reporting properties to defaults
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113899 13f79535-47bb-0310-9956-ffa450edef68
2003-08-29 06:27:54 +00:00
evenisse
ec2baff6e1 fixed MAVEN-493.
I register reports only if source, test,... exists.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113563 13f79535-47bb-0310-9956-ffa450edef68
2003-07-01 13:53:42 +00:00
bwalding
4cf0745242 I'm not going to pretend that this works very well.
* Flushpolicy - it's just a hack that we have a 500ms flush interval.  Should be 
	allowed to flush with an ant task
* Basically clover 1.2 sort of works, want to check something that reasonably works
in before I break it again.
PR: MAVEN-372


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113481 13f79535-47bb-0310-9956-ffa450edef68
2003-06-10 13:22:47 +00:00