maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r473232 - in /maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin: AbstractCompilerMojo.java CompilationFailureException.java TestCompilerMojo.java
Date Fri, 10 Nov 2006 07:47:47 GMT
Author: brett
Date: Thu Nov  9 23:47:46 2006
New Revision: 473232

URL: http://svn.apache.org/viewvc?view=rev&rev=473232
Log:
reformat code

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

Modified: maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java?view=diff&rev=473232&r1=473231&r2=473232
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java
(original)
+++ maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java
Thu Nov  9 23:47:46 2006
@@ -168,10 +168,10 @@
     private String executable;
 
     /**
-     * <p>
+     * <p/>
      * Sets the arguments to be passed to the compiler (prepending a dash) if fork is set
to true.
      * </p>
-     * <p>
+     * <p/>
      * This is because the list of valid arguments passed to a Java compiler
      * varies based on the compiler version.
      * </p>
@@ -181,10 +181,10 @@
     private Map compilerArguments;
 
     /**
-     * <p>
+     * <p/>
      * Sets the unformatted argument string to be passed to the compiler if fork is set to
true.
      * </p>
-     * <p>
+     * <p/>
      * This is because the list of valid arguments passed to a Java compiler
      * varies based on the compiler version.
      * </p>
@@ -310,7 +310,7 @@
 
         compilerConfiguration.setSourceEncoding( encoding );
 
-        if (( compilerArguments != null ) || ( compilerArgument != null ))
+        if ( ( compilerArguments != null ) || ( compilerArgument != null ) )
         {
             LinkedHashMap cplrArgsCopy = new LinkedHashMap();
             if ( compilerArguments != null )
@@ -320,14 +320,14 @@
                     Map.Entry me = (Map.Entry) i.next();
                     String key = (String) me.getKey();
                     String value = (String) me.getValue();
-                    if ( !key.startsWith( "-" ))
+                    if ( !key.startsWith( "-" ) )
                     {
                         key = "-" + key;
                     }
                     cplrArgsCopy.put( key, value );
                 }
             }
-            if ( !StringUtils.isEmpty( compilerArgument) )
+            if ( !StringUtils.isEmpty( compilerArgument ) )
             {
                 cplrArgsCopy.put( compilerArgument, null );
             }
@@ -336,33 +336,33 @@
 
         compilerConfiguration.setFork( fork );
 
-        if( fork )
+        if ( fork )
         {
             if ( !StringUtils.isEmpty( meminitial ) )
             {
                 String value = getMemoryValue( meminitial );
-                
+
                 if ( value != null )
                 {
                     compilerConfiguration.setMeminitial( value );
                 }
                 else
                 {
-                    getLog().info( "Invalid value for meminitial '" + meminitial + "'. Ignoring
this option." );                    
+                    getLog().info( "Invalid value for meminitial '" + meminitial + "'. Ignoring
this option." );
                 }
             }
 
             if ( !StringUtils.isEmpty( maxmem ) )
             {
                 String value = getMemoryValue( maxmem );
-                
+
                 if ( value != null )
                 {
                     compilerConfiguration.setMaxmem( value );
                 }
                 else
                 {
-                    getLog().info( "Invalid value for maxmem '" + maxmem + "'. Ignoring this
option." );                    
+                    getLog().info( "Invalid value for maxmem '" + maxmem + "'. Ignoring this
option." );
                 }
             }
         }
@@ -519,7 +519,7 @@
     private String getMemoryValue( String setting )
     {
         String value = null;
-        
+
         // Allow '128' or '128m'
         if ( isDigits( setting ) )
         {

Modified: maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilationFailureException.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilationFailureException.java?view=diff&rev=473232&r1=473231&r2=473232
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilationFailureException.java
(original)
+++ maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilationFailureException.java
Thu Nov  9 23:47:46 2006
@@ -39,7 +39,7 @@
     {
         StringBuffer sb = new StringBuffer();
 
-        for ( Iterator it = messages.iterator(); it.hasNext() ; )
+        for ( Iterator it = messages.iterator(); it.hasNext(); )
         {
             CompilerError compilerError = (CompilerError) it.next();
 

Modified: maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java?view=diff&rev=473232&r1=473231&r2=473232
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java
(original)
+++ maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java
Thu Nov  9 23:47:46 2006
@@ -28,7 +28,7 @@
 
 /**
  * Compiles application test sources
- * 
+ *
  * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
  * @version $Id$
  * @goal testCompile



Mime
View raw message