maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r617805 - /maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/util/PluginUtils.java
Date Sat, 02 Feb 2008 14:32:34 GMT
Author: vsiveton
Date: Sat Feb  2 06:32:34 2008
New Revision: 617805

URL: http://svn.apache.org/viewvc?rev=617805&view=rev
Log:
o code style

Modified:
    maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/util/PluginUtils.java

Modified: maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/util/PluginUtils.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/util/PluginUtils.java?rev=617805&r1=617804&r2=617805&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/util/PluginUtils.java
(original)
+++ maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/util/PluginUtils.java
Sat Feb  2 06:32:34 2008
@@ -19,6 +19,10 @@
  * under the License.
  */
 
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+
 import org.apache.maven.model.Dependency;
 import org.apache.maven.plugin.descriptor.PluginDescriptor;
 import org.codehaus.plexus.component.repository.ComponentDependency;
@@ -26,18 +30,15 @@
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.plexus.util.xml.XMLWriter;
 
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
 /**
  * @author jdcasey
+ * @version $Id$
  */
 public final class PluginUtils
 {
-
     private PluginUtils()
     {
+        // nop
     }
 
     public static String[] findSources( String basedir, String include )
@@ -49,15 +50,15 @@
     {
         DirectoryScanner scanner = new DirectoryScanner();
         scanner.setBasedir( basedir );
-        scanner.setIncludes( new String[]{include} );
+        scanner.setIncludes( new String[] { include } );
         if ( !StringUtils.isEmpty( exclude ) )
         {
             // TODO: need default excludes in scanner
-            scanner.setExcludes( new String[]{exclude, "**/.svn/**"} );
+            scanner.setExcludes( new String[] { exclude, "**/.svn/**" } );
         }
         else
         {
-            scanner.setExcludes( new String[]{"**/.svn/**"} );
+            scanner.setExcludes( new String[] { "**/.svn/**" } );
         }
 
         scanner.scan();
@@ -67,7 +68,6 @@
 
     public static void writeDependencies( XMLWriter w, PluginDescriptor pluginDescriptor
)
     {
-
         w.startElement( "dependencies" );
 
         for ( Iterator it = pluginDescriptor.getDependencies().iterator(); it.hasNext();
)
@@ -124,5 +124,4 @@
 
         w.endElement();
     }
-
 }



Mime
View raw message