incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1145094 - /sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java
Date Mon, 11 Jul 2011 09:38:25 GMT
Author: cziegeler
Date: Mon Jul 11 09:38:24 2011
New Revision: 1145094

URL: http://svn.apache.org/viewvc?rev=1145094&view=rev
Log:
Remove unused code

Modified:
    sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java

Modified: sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java
URL: http://svn.apache.org/viewvc/sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java?rev=1145094&r1=1145093&r2=1145094&view=diff
==============================================================================
--- sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java
(original)
+++ sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java
Mon Jul 11 09:38:24 2011
@@ -28,9 +28,7 @@ import org.codehaus.plexus.archiver.Arch
 import org.codehaus.plexus.archiver.UnArchiver;
 import org.codehaus.plexus.archiver.manager.ArchiverManager;
 import org.codehaus.plexus.archiver.manager.NoSuchArchiverException;
-import org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSelector;
 import org.codehaus.plexus.util.FileUtils;
-import org.codehaus.plexus.util.StringUtils;
 
 /**
  * Initialize a Sling application project by extracting bundles into the correct
@@ -184,7 +182,7 @@ public class PreparePackageMojo extends 
 									"Project doesn't have a base dependency of groupId %s and artifactId %s",
 									base.getGroupId(), base.getArtifactId()));
 		}
-		unpack(artifact.getFile(), buildOutputDirectory, null, null);
+		unpack(artifact.getFile(), buildOutputDirectory);
 	}
 
     private void copyConfigurationFiles() throws MojoExecutionException {
@@ -196,7 +194,7 @@ public class PreparePackageMojo extends 
 
     }
 
-    private void unpack(File source, File destination, String includes, String excludes)
+    private void unpack(File source, File destination)
             throws MojoExecutionException {
         getLog().info("Unpacking " + source.getPath() + " to\n  " + destination.getPath());
         try {
@@ -207,20 +205,6 @@ public class PreparePackageMojo extends 
             unArchiver.setSourceFile(source);
             unArchiver.setDestDirectory(destination);
 
-            if (StringUtils.isNotEmpty(excludes) || StringUtils.isNotEmpty(includes)) {
-                IncludeExcludeFileSelector[] selectors = new IncludeExcludeFileSelector[]
{ new IncludeExcludeFileSelector() };
-
-                if (StringUtils.isNotEmpty(excludes)) {
-                    selectors[0].setExcludes(excludes.split(","));
-                }
-
-                if (StringUtils.isNotEmpty(includes)) {
-                    selectors[0].setIncludes(includes.split(","));
-                }
-
-                unArchiver.setFileSelectors(selectors);
-            }
-
             unArchiver.extract();
         } catch (NoSuchArchiverException e) {
             throw new MojoExecutionException("Unable to find archiver for " + source.getPath(),
e);



Mime
View raw message