From a315b8e83e78cfaea521b9b5b58a4dde51d721ce Mon Sep 17 00:00:00 2001 From: Kenney Westerhof Date: Thu, 12 Oct 2006 15:42:40 +0000 Subject: [PATCH] Removed catch of IOException - not thrown anymode by UnArchiver git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@463285 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/script/ant/AntMojoWrapper.java | 29 ++++++++----------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/maven-script/maven-script-ant/src/main/java/org/apache/maven/script/ant/AntMojoWrapper.java b/maven-script/maven-script-ant/src/main/java/org/apache/maven/script/ant/AntMojoWrapper.java index 95822d73cf..3169907c66 100644 --- a/maven-script/maven-script-ant/src/main/java/org/apache/maven/script/ant/AntMojoWrapper.java +++ b/maven-script/maven-script-ant/src/main/java/org/apache/maven/script/ant/AntMojoWrapper.java @@ -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.util.ArrayList; -import java.util.Iterator; import java.io.File; -import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Map; /** @@ -102,7 +101,7 @@ public class AntMojoWrapper 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 @@ -124,10 +123,6 @@ public class AntMojoWrapper { 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 ); - } } private void addClasspathReferences()