directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r607613 - in /directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins: AbstractStudioMojo.java StudioEclipseMojo.java StudioPrepareJarPackageMojo.java
Date Sun, 30 Dec 2007 23:21:34 GMT
Author: felixk
Date: Sun Dec 30 15:21:27 2007
New Revision: 607613

URL: http://svn.apache.org/viewvc?rev=607613&view=rev
Log:
Remove Duplications (from PMD's CPD report)

Modified:
    directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java
    directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioEclipseMojo.java
    directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioPrepareJarPackageMojo.java

Modified: directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java?rev=607613&r1=607612&r2=607613&view=diff
==============================================================================
--- directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java
(original)
+++ directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/AbstractStudioMojo.java
Sun Dec 30 15:21:27 2007
@@ -22,6 +22,7 @@
 
 import java.io.File;
 import java.io.IOException;
+import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
 
@@ -401,6 +402,26 @@
             }
         }
         return ( path.delete() );
+    }
+
+
+    /**
+     * Return a list of artifacts nonscoped "provided"
+     * 
+     * @return
+     */
+    protected List<Artifact> createArtifactList()
+    {
+        List<Artifact> list = new ArrayList<Artifact>();
+        for ( Iterator<Artifact> artifactItem = project.getArtifacts().iterator();
artifactItem.hasNext(); )
+        {
+            Artifact artifact = ( Artifact ) artifactItem.next();
+            if ( !artifact.getScope().equalsIgnoreCase( "provided" ) )
+            {
+                list.add( artifact );
+            }
+        }
+        return list;
     }
 
 

Modified: directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioEclipseMojo.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioEclipseMojo.java?rev=607613&r1=607612&r2=607613&view=diff
==============================================================================
--- directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioEclipseMojo.java
(original)
+++ directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioEclipseMojo.java
Sun Dec 30 15:21:27 2007
@@ -30,8 +30,6 @@
 import java.io.InputStreamReader;
 import java.io.OutputStreamWriter;
 import java.io.Writer;
-import java.util.ArrayList;
-import java.util.Iterator;
 import java.util.List;
 
 import org.apache.commons.io.FileUtils;
@@ -124,26 +122,6 @@
                 getLog().error( e );
             }
         }
-    }
-
-
-    /**
-     * Return a list of artifacts nonscoped "provided"
-     * 
-     * @return
-     */
-    private List<Artifact> createArtifactList()
-    {
-        List<Artifact> list = new ArrayList<Artifact>();
-        for ( Iterator<Artifact> artifactItem = project.getArtifacts().iterator();
artifactItem.hasNext(); )
-        {
-            Artifact artifact = ( Artifact ) artifactItem.next();
-            if ( !artifact.getScope().equalsIgnoreCase( "provided" ) )
-            {
-                list.add( artifact );
-            }
-        }
-        return list;
     }
 
 

Modified: directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioPrepareJarPackageMojo.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioPrepareJarPackageMojo.java?rev=607613&r1=607612&r2=607613&view=diff
==============================================================================
--- directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioPrepareJarPackageMojo.java
(original)
+++ directory/sandbox/felixk/studio-plugin/src/main/java/org/apache/directory/studio/maven/plugins/StudioPrepareJarPackageMojo.java
Sun Dec 30 15:21:27 2007
@@ -22,8 +22,6 @@
 
 import java.io.File;
 import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Iterator;
 import java.util.List;
 
 import org.apache.commons.io.FileUtils;
@@ -83,26 +81,6 @@
         {
             getLog().error( e );
         }
-    }
-
-
-    /**
-     * Return a list of artifacts nonscoped "provided"
-     * 
-     * @return
-     */
-    private List<Artifact> createArtifactList()
-    {
-        List<Artifact> list = new ArrayList<Artifact>();
-        for ( Iterator<Artifact> artifactItem = project.getArtifacts().iterator();
artifactItem.hasNext(); )
-        {
-            Artifact artifact = ( Artifact ) artifactItem.next();
-            if ( !artifact.getScope().equalsIgnoreCase( "provided" ) )
-            {
-                list.add( artifact );
-            }
-        }
-        return list;
     }
 
 



Mime
View raw message