]> git.pld-linux.org Git - packages/maven.git/blob - maven-plugins-catch-uncaught-exceptions.patch
- raw files from JPP maven2 package
[packages/maven.git] / maven-plugins-catch-uncaught-exceptions.patch
1 --- maven2-plugins/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/AbstractDependencyMojo.java.sav     2007-10-16 10:25:00.000000000 -0400
2 +++ maven2-plugins/maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/AbstractDependencyMojo.java 2007-10-16 10:26:27.000000000 -0400
3 @@ -241,6 +241,11 @@ public abstract class AbstractDependency
4              throw new MojoExecutionException( "Error unpacking file: " + file + " to: " + location + "\r\n"
5                  + e.toString(), e );
6          }
7 +        catch ( IOException ioe )
8 +        {   
9 +            throw new MojoExecutionException( "I/O exception when unpacking file: " + file, ioe );
10 +        }
11 +
12      }
13  
14      private void silenceUnarchiver( UnArchiver unArchiver )
15 --- maven2-plugins/maven-assembly-plugin/src/main/java/org/apache/maven/plugin/assembly/utils/AssemblyFileUtils.java.sav        2007-10-16 10:23:42.000000000 -0400
16 +++ maven2-plugins/maven-assembly-plugin/src/main/java/org/apache/maven/plugin/assembly/utils/AssemblyFileUtils.java    2007-10-16 10:26:51.000000000 -0400
17 @@ -62,6 +62,11 @@ public final class AssemblyFileUtils
18          {
19              throw new ArchiveExpansionException( "Error unpacking file: " + source + "to: " + destDir, e );
20          }
21 +        catch ( IOException ioe )
22 +        {   
23 +            throw new ArchiveExpansionException( "I/O exception when unpacking file: " + source, ioe );
24 +        }
25 +
26      }
27  
28      /**
This page took 0.032907 seconds and 4 git commands to generate.