You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by pt...@apache.org on 2009/02/03 12:04:02 UTC

svn commit: r740272 - /jakarta/cactus/trunk/integration/maven2/src/main/java/org/apache/cactus/maven2/mojos/CactifyEarMojo.java

Author: ptahchiev
Date: Tue Feb  3 11:04:02 2009
New Revision: 740272

URL: http://svn.apache.org/viewvc?rev=740272&view=rev
Log:
Checkstyle improved.

Modified:
    jakarta/cactus/trunk/integration/maven2/src/main/java/org/apache/cactus/maven2/mojos/CactifyEarMojo.java

Modified: jakarta/cactus/trunk/integration/maven2/src/main/java/org/apache/cactus/maven2/mojos/CactifyEarMojo.java
URL: http://svn.apache.org/viewvc/jakarta/cactus/trunk/integration/maven2/src/main/java/org/apache/cactus/maven2/mojos/CactifyEarMojo.java?rev=740272&r1=740271&r2=740272&view=diff
==============================================================================
--- jakarta/cactus/trunk/integration/maven2/src/main/java/org/apache/cactus/maven2/mojos/CactifyEarMojo.java (original)
+++ jakarta/cactus/trunk/integration/maven2/src/main/java/org/apache/cactus/maven2/mojos/CactifyEarMojo.java Tue Feb  3 11:04:02 2009
@@ -132,8 +132,8 @@
      * @throws MojoExecutionException in case an error occurs.
      * @throws MojoFailureException in case a failure occurs.
      */
-	public void execute() throws MojoExecutionException, MojoFailureException 
-	{
+    public void execute() throws MojoExecutionException, MojoFailureException 
+    {
         if (cactusWar == null)
         {
             cactusWar = createCactusWarConfig();
@@ -142,7 +142,7 @@
         if (getSrcFile() == null) 
         {
             throw new MojoExecutionException("You need to specify [srcFile] "
-            		+ "attribute for cactification!");
+                + "attribute for cactification!");
         }
         MavenArchiver archiver = new MavenArchiver();
         archiver.setArchiver(earArchiver);
@@ -176,14 +176,14 @@
         
         try 
         {
-			earArchiver.addDirectory(tempLocation);
-		} 
+            earArchiver.addDirectory(tempLocation);
+        } 
         catch (ArchiverException e1) 
         {
-			// Cannot add the temp location for some reason.
-        	throw new MojoExecutionException("Problem adding the source " +
-        			"files to the dest. archive ", e1);
-		}
+            // Cannot add the temp location for some reason.
+            throw new MojoExecutionException("Problem adding the source "
+                + "files to the dest. archive ", e1);
+        }
         
         // cactify the application.xml
         ApplicationXml appXml = null;
@@ -247,7 +247,7 @@
                        + "folder", e);
             }
         }
-	}
+    }
     
     /**
      * A helper method to create a temporary file.
@@ -255,7 +255,8 @@
      * @throws MojoExecutionException in case a runtime error occurs.
      * @throws MojoFailureException in case a mojo failure occurs.
      */
-    private File createCactusWarFile() throws MojoExecutionException, MojoFailureException
+    private File createCactusWarFile() 
+        throws MojoExecutionException, MojoFailureException
     {
         File tmpCactusWar = FileUtils.createTempFile("cactus", "cactus.war",
                                                      getProject().getBasedir());
@@ -286,7 +287,7 @@
      * 
      * @param theAppXml the application.xml to cactify
      * @return the cactified application.xml
-     * @throws MojoExecutionException 
+     * @throws MojoExecutionException in case a problem occurs
      */
     private File cactifyApplicationXml(ApplicationXml theAppXml) 
                                             throws MojoExecutionException
@@ -315,7 +316,7 @@
      * 
      * @return the application.xml from the source ear
      * @throws JDOMException in case a JDOM exception is thrown
-     * @throws MojoExecutionException 
+     * @throws MojoExecutionException in case a problem occurs
      */
     private ApplicationXml getOriginalApplicationXml() 
                             throws JDOMException, MojoExecutionException
@@ -475,7 +476,7 @@
     
     /**
      * Getter method for the destFile.
-     * @return
+     * @return the destination file
      */
     public File getDestFile() 
     {
@@ -484,7 +485,7 @@
     
     /**
      * Getter method for the srcFile.
-     * @return
+     * @return the source file
      */
     public File getSrcFile() 
     {



---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org