You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2012/11/15 22:40:59 UTC

svn commit: r1410034 - in /maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler: AbstractCompilerMojo.java CompilerMojo.java TestCompilerMojo.java

Author: olamy
Date: Thu Nov 15 21:40:58 2012
New Revision: 1410034

URL: http://svn.apache.org/viewvc?rev=1410034&view=rev
Log:
don't use deprecated exception

Modified:
    maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
    maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java
    maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java

Modified: maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java?rev=1410034&r1=1410033&r2=1410034&view=diff
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java (original)
+++ maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java Thu Nov 15 21:40:58 2012
@@ -21,7 +21,6 @@ package org.apache.maven.plugin.compiler
 
 import org.apache.maven.execution.MavenSession;
 import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.CompilationFailureException;
 import org.apache.maven.plugin.MojoExecution;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugins.annotations.Component;

Modified: maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java?rev=1410034&r1=1410033&r2=1410034&view=diff
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java (original)
+++ maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java Thu Nov 15 21:40:58 2012
@@ -20,7 +20,6 @@ package org.apache.maven.plugin.compiler
  */
 
 import org.apache.maven.artifact.Artifact;
-import org.apache.maven.plugin.CompilationFailureException;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Parameter;

Modified: maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java?rev=1410034&r1=1410033&r2=1410034&view=diff
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java (original)
+++ maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java Thu Nov 15 21:40:58 2012
@@ -19,7 +19,6 @@ package org.apache.maven.plugin.compiler
  * under the License.
  */
 
-import org.apache.maven.plugin.CompilationFailureException;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Parameter;
@@ -42,8 +41,8 @@ import java.util.Set;
  * @version $Id$
  * @since 2.0
  */
-@org.apache.maven.plugins.annotations.Mojo( name = "testCompile", defaultPhase = LifecyclePhase.TEST_COMPILE,
-                                            threadSafe = true, requiresDependencyResolution = ResolutionScope.TEST )
+@org.apache.maven.plugins.annotations.Mojo ( name = "testCompile", defaultPhase = LifecyclePhase.TEST_COMPILE,
+                                             threadSafe = true, requiresDependencyResolution = ResolutionScope.TEST )
 public class TestCompilerMojo
     extends AbstractCompilerMojo
 {
@@ -51,25 +50,25 @@ public class TestCompilerMojo
      * Set this to 'true' to bypass compilation of test sources.
      * Its use is NOT RECOMMENDED, but quite convenient on occasion.
      */
-    @Parameter( property = "maven.test.skip" )
+    @Parameter ( property = "maven.test.skip" )
     private boolean skip;
 
     /**
      * The source directories containing the test-source to be compiled.
      */
-    @Parameter( defaultValue = "${project.testCompileSourceRoots}", readonly = true, required = true )
+    @Parameter ( defaultValue = "${project.testCompileSourceRoots}", readonly = true, required = true )
     private List<String> compileSourceRoots;
 
     /**
      * Project test classpath.
      */
-    @Parameter( defaultValue = "${project.testClasspathElements}", required = true, readonly = true )
+    @Parameter ( defaultValue = "${project.testClasspathElements}", required = true, readonly = true )
     private List<String> classpathElements;
 
     /**
      * The directory where compiled test classes go.
      */
-    @Parameter( defaultValue = "${project.build.testOutputDirectory}", required = true, readonly = true )
+    @Parameter ( defaultValue = "${project.build.testOutputDirectory}", required = true, readonly = true )
     private File outputDirectory;
 
     /**
@@ -89,7 +88,7 @@ public class TestCompilerMojo
      *
      * @since 2.1
      */
-    @Parameter( property = "maven.compiler.testSource" )
+    @Parameter ( property = "maven.compiler.testSource" )
     private String testSource;
 
     /**
@@ -97,7 +96,7 @@ public class TestCompilerMojo
      *
      * @since 2.1
      */
-    @Parameter( property = "maven.compiler.testTarget" )
+    @Parameter ( property = "maven.compiler.testTarget" )
     private String testTarget;
 
 
@@ -137,7 +136,7 @@ public class TestCompilerMojo
      *
      * @since 2.2
      */
-    @Parameter( defaultValue = "${project.build.directory}/generated-test-sources/test-annotations" )
+    @Parameter ( defaultValue = "${project.build.directory}/generated-test-sources/test-annotations" )
     private File generatedTestSourcesDirectory;