[Jboss-cvs] JBossAS SVN: r55110 - projects/microcontainer/trunk/container/src/main/org/jboss/vfs/file
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Aug 3 09:25:51 EDT 2006
Author: scott.stark at jboss.org
Date: 2006-08-03 09:25:49 -0400 (Thu, 03 Aug 2006)
New Revision: 55110
Modified:
projects/microcontainer/trunk/container/src/main/org/jboss/vfs/file/JarImpl.java
Log:
Wrap in JarFile IOException in one that includes the jar vfs path
Modified: projects/microcontainer/trunk/container/src/main/org/jboss/vfs/file/JarImpl.java
===================================================================
--- projects/microcontainer/trunk/container/src/main/org/jboss/vfs/file/JarImpl.java 2006-08-03 13:21:28 UTC (rev 55109)
+++ projects/microcontainer/trunk/container/src/main/org/jboss/vfs/file/JarImpl.java 2006-08-03 13:25:49 UTC (rev 55110)
@@ -70,8 +70,17 @@
throws IOException
{
file = new File(path);
- jar = new JarFile(file);
this.vfsPath = vfsPath;
+ try
+ {
+ jar = new JarFile(file);
+ }
+ catch(IOException e)
+ {
+ IOException ioe = new IOException("Error on jar: "+path);
+ ioe.initCause(e);
+ throw ioe;
+ }
}
public String getName()
More information about the jboss-cvs-commits
mailing list