diff --git a/clover/plugin.jelly b/clover/plugin.jelly index 8acf427a..2fbeae63 100644 --- a/clover/plugin.jelly +++ b/clover/plugin.jelly @@ -214,6 +214,11 @@ --> + + + ${context.removeVariable('build.compiler')} diff --git a/clover/src/plugin-test/testCloverOffCleansProperly/maven.xml b/clover/src/plugin-test/testCloverOffCleansProperly/maven.xml new file mode 100644 index 00000000..5c691690 --- /dev/null +++ b/clover/src/plugin-test/testCloverOffCleansProperly/maven.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/clover/src/plugin-test/testCloverOffCleansProperly/project.xml b/clover/src/plugin-test/testCloverOffCleansProperly/project.xml new file mode 100644 index 00000000..d216aef7 --- /dev/null +++ b/clover/src/plugin-test/testCloverOffCleansProperly/project.xml @@ -0,0 +1,34 @@ + + + + + + ${basedir}/../project.xml + testCloverOffCleansProperly + testCloverOffCleansProperly + + src/main + src/test + + + **/*Test.java + + + + diff --git a/clover/src/plugin-test/testCloverOffCleansProperly/src/main/org/apache/maven/clover/test/Simple.java b/clover/src/plugin-test/testCloverOffCleansProperly/src/main/org/apache/maven/clover/test/Simple.java new file mode 100644 index 00000000..b441aa6e --- /dev/null +++ b/clover/src/plugin-test/testCloverOffCleansProperly/src/main/org/apache/maven/clover/test/Simple.java @@ -0,0 +1,25 @@ +package org.apache.maven.clover.test; + +/* ==================================================================== + * Copyright 2001-2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + */ + +public class Simple +{ + public void someMethod() + { + } +} \ No newline at end of file diff --git a/clover/src/plugin-test/testCloverOffCleansProperly/src/test/org/apache/maven/clover/test/SimpleTest.java b/clover/src/plugin-test/testCloverOffCleansProperly/src/test/org/apache/maven/clover/test/SimpleTest.java new file mode 100644 index 00000000..d18d53df --- /dev/null +++ b/clover/src/plugin-test/testCloverOffCleansProperly/src/test/org/apache/maven/clover/test/SimpleTest.java @@ -0,0 +1,29 @@ +package org.apache.maven.clover.test; + +/* ==================================================================== + * Copyright 2001-2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + */ + +import junit.framework.TestCase; + +public class SimpleTest extends TestCase +{ + public void testSomeMethod() + { + Simple simple = new Simple(); + simple.someMethod(); + } +} \ No newline at end of file diff --git a/clover/xdocs/changes.xml b/clover/xdocs/changes.xml index f5aa0e3b..7f0cfc9b 100644 --- a/clover/xdocs/changes.xml +++ b/clover/xdocs/changes.xml @@ -26,6 +26,10 @@ + + Fully disable Clover in clover:off so that the Clover + compiler adapter delegates straight to the default compiler. + Removed the maven.clover.jar property that was used to override the default Clover jar. This property was not working