Index: pom.xml =================================================================== --- pom.xml (revision 10666) +++ pom.xml (working copy) @@ -97,6 +97,46 @@ + + + run-its + + + + maven-invoker-plugin + 1.3 + + true + src/it + ${project.build.directory}/it + + **/pom.xml + + + pom.xml + + verify + ${project.build.directory}/local-repo + src/it/settings.xml + + verify + site + + + + + integration-test + + install + run + + + + + + + + @@ -174,7 +214,7 @@ org.apache.maven.shared maven-plugin-testing-harness - 1.0-beta-1 + 1.1 test Index: src/it/full-pom/pom.xml =================================================================== --- src/it/full-pom/pom.xml (revision 0) +++ src/it/full-pom/pom.xml (revision 0) @@ -0,0 +1,108 @@ + + + + + 4.0.0 + + org.codehaus.mojo.cobertura-maven-plugin + full-pom + 1.0-SNAPSHOT + jar + + + UTF-8 + + + + + + org.codehaus.mojo + cobertura-maven-plugin + @pom.version@ + + + cobertura-clean + clean + + clean + + + + cobertura-instrument + process-classes + + instrument + + + + + **/*.class + + + + + + cobertura-check-only + verify + + check-only + + + + 90 + 80 + true + 90 + 80 + 80 + 90 + + + + + + + + + + + + org.codehaus.mojo + cobertura-maven-plugin + @pom.version@ + + + report-only + + report-only + + + + html + + + + + + + + Index: src/it/settings.xml =================================================================== --- src/it/settings.xml (revision 0) +++ src/it/settings.xml (revision 0) @@ -0,0 +1,66 @@ + + + + + + + + it-repo + + true + + + + local.central + @localRepositoryUrl@ + + true + + + true + + + + codehaus.snapshots + Codehaus Snapshots Repository + http://snapshots.repository.codehaus.org/ + + false + + + true + + + + + + local.central + @localRepositoryUrl@ + + true + + + true + + + + + + Index: src/main/java/org/codehaus/mojo/cobertura/CoberturaReportOnlyMojo.java =================================================================== --- src/main/java/org/codehaus/mojo/cobertura/CoberturaReportOnlyMojo.java (revision 0) +++ src/main/java/org/codehaus/mojo/cobertura/CoberturaReportOnlyMojo.java (revision 0) @@ -0,0 +1,31 @@ +package org.codehaus.mojo.cobertura; + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +/** + * Generates a Cobertura Report. + * + * @author Stevo Slavic + * @goal report-only + * @execute phase="validate" + */ +public class CoberturaReportOnlyMojo extends CoberturaReportMojo { + +} Index: src/main/java/org/codehaus/mojo/cobertura/tasks/AbstractTask.java =================================================================== --- src/main/java/org/codehaus/mojo/cobertura/tasks/AbstractTask.java (revision 10083) +++ src/main/java/org/codehaus/mojo/cobertura/tasks/AbstractTask.java (working copy) @@ -137,7 +137,7 @@ URL log4jurl = this.getClass().getClassLoader().getResource( resourceName ); FileUtils.copyURLToFile( log4jurl, log4jconfigFile ); log4jconfigFile.deleteOnExit(); - path = log4jconfigFile.toURL().toExternalForm(); + path = log4jconfigFile.toURI().toURL().toExternalForm(); } catch ( MalformedURLException e ) { Index: src/main/java/org/codehaus/mojo/cobertura/CoberturaReportMojo.java =================================================================== --- src/main/java/org/codehaus/mojo/cobertura/CoberturaReportMojo.java (revision 10083) +++ src/main/java/org/codehaus/mojo/cobertura/CoberturaReportMojo.java (working copy) @@ -236,7 +236,7 @@ { /* * Don't have to check for source directories or java code or the like for report generation. Checks for source - * directories or java project classpath existance should only occur in the Instrument Mojo. + * directories or java project classpath existence should only occur in the Instrument Mojo. */ if ( dataFile == null || !dataFile.exists() ) { Index: src/main/java/org/codehaus/mojo/cobertura/CoberturaCheckOnlyMojo.java =================================================================== --- src/main/java/org/codehaus/mojo/cobertura/CoberturaCheckOnlyMojo.java (revision 0) +++ src/main/java/org/codehaus/mojo/cobertura/CoberturaCheckOnlyMojo.java (revision 0) @@ -0,0 +1,31 @@ +package org.codehaus.mojo.cobertura; + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +/** + * Generates a Cobertura Report. + * + * @author Stevo Slavic + * @goal check-only + * @execute phase="validate" + */ +public class CoberturaCheckOnlyMojo extends CoberturaCheckMojo { + +}