maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ken...@apache.org
Subject svn commit: r463285 - /maven/components/trunk/maven-script/maven-script-ant/src/main/java/org/apache/maven/script/ant/AntMojoWrapper.java
Date Thu, 12 Oct 2006 15:42:41 GMT
Author: kenney
Date: Thu Oct 12 08:42:40 2006
New Revision: 463285

URL: http://svn.apache.org/viewvc?view=rev&rev=463285
Log:
Removed catch of IOException - not thrown anymode by UnArchiver

Modified:
    maven/components/trunk/maven-script/maven-script-ant/src/main/java/org/apache/maven/script/ant/AntMojoWrapper.java

Modified: maven/components/trunk/maven-script/maven-script-ant/src/main/java/org/apache/maven/script/ant/AntMojoWrapper.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-script/maven-script-ant/src/main/java/org/apache/maven/script/ant/AntMojoWrapper.java?view=diff&rev=463285&r1=463284&r2=463285
==============================================================================
--- maven/components/trunk/maven-script/maven-script-ant/src/main/java/org/apache/maven/script/ant/AntMojoWrapper.java
(original)
+++ maven/components/trunk/maven-script/maven-script-ant/src/main/java/org/apache/maven/script/ant/AntMojoWrapper.java
Thu Oct 12 08:42:40 2006
@@ -1,31 +1,30 @@
 package org.apache.maven.script.ant;
 
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.artifact.DependencyResolutionRequiredException;
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.ContextEnabled;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.descriptor.PluginDescriptor;
 import org.apache.maven.project.MavenProject;
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.DependencyResolutionRequiredException;
-import org.apache.tools.ant.types.Path;
 import org.apache.tools.ant.Project;
+import org.apache.tools.ant.types.Path;
+import org.codehaus.plexus.archiver.ArchiverException;
+import org.codehaus.plexus.archiver.UnArchiver;
+import org.codehaus.plexus.archiver.zip.ZipUnArchiver;
 import org.codehaus.plexus.component.MapOrientedComponent;
 import org.codehaus.plexus.component.configurator.ComponentConfigurationException;
 import org.codehaus.plexus.component.factory.ant.AntComponentExecutionException;
 import org.codehaus.plexus.component.factory.ant.AntScriptInvoker;
 import org.codehaus.plexus.component.repository.ComponentRequirement;
-import org.codehaus.plexus.archiver.UnArchiver;
-import org.codehaus.plexus.archiver.ArchiverException;
-import org.codehaus.plexus.archiver.zip.ZipUnArchiver;
 import org.codehaus.plexus.util.StringUtils;
 
-import java.util.Map;
-import java.util.Collection;
-import java.util.List;
+import java.io.File;
 import java.util.ArrayList;
+import java.util.Collection;
 import java.util.Iterator;
-import java.io.File;
-import java.io.IOException;
+import java.util.List;
+import java.util.Map;
 
 
 /**
@@ -102,7 +101,7 @@
     private void unpackFileBasedResources()
         throws MojoExecutionException
     {
-        // What we need to write out any resources in the plugin to the target directory
of the 
+        // What we need to write out any resources in the plugin to the target directory
of the
         // mavenProject using the Ant-based plugin:
         //
         // 1. Need a reference to the plugin JAR itself
@@ -121,10 +120,6 @@
             ua.extract( resourcesPath, outputDirectory );
         }
         catch ( ArchiverException e )
-        {
-            throw new MojoExecutionException( "Error extracting resources from your Ant-based
plugin.", e );
-        }
-        catch( IOException e )
         {
             throw new MojoExecutionException( "Error extracting resources from your Ant-based
plugin.", e );
         }



Mime
View raw message