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 2008/07/29 23:33:35 UTC

svn commit: r680848 - in /maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy: AbstractDeployMojo.java DeployMojo.java

Author: olamy
Date: Tue Jul 29 14:33:34 2008
New Revision: 680848

URL: http://svn.apache.org/viewvc?rev=680848&view=rev
Log:
fix checkstyle errors

Modified:
    maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java
    maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java

Modified: maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java?rev=680848&r1=680847&r2=680848&view=diff
==============================================================================
--- maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java (original)
+++ maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java Tue Jul 29 14:33:34 2008
@@ -25,6 +25,9 @@
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
 
+/**
+ * @version $Id$
+ */
 public abstract class AbstractDeployMojo
     extends AbstractMojo
 {
@@ -52,7 +55,7 @@
         return deployer;
     }
 
-    public void setDeployer(ArtifactDeployer deployer)
+    public void setDeployer( ArtifactDeployer deployer )
     {
         this.deployer = deployer;
     }
@@ -62,7 +65,7 @@
         return localRepository;
     }
 
-    public void setLocalRepository(ArtifactRepository localRepository)
+    public void setLocalRepository( ArtifactRepository localRepository )
     {
         this.localRepository = localRepository;
     }

Modified: maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java?rev=680848&r1=680847&r2=680848&view=diff
==============================================================================
--- maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java (original)
+++ maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployMojo.java Tue Jul 29 14:33:34 2008
@@ -178,8 +178,8 @@
                 }
                 else
                 {
-                    throw new MojoExecutionException(
-                                                      "The packaging for this project did not assign a file to the build artifact" );
+                    String message = "The packaging for this project did not assign a file to the build artifact";
+                    throw new MojoExecutionException( message );
                 }
             }
 
@@ -201,9 +201,8 @@
     {
         if ( deploymentRepository == null && altDeploymentRepository == null )
         {
-            String msg =
-                "Deployment failed: repository element was not specified in the pom inside"
-                                + " distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter";
+            String msg = "Deployment failed: repository element was not specified in the pom inside"
+                + " distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter";
 
             throw new MojoExecutionException( msg );
         }