[jboss-cvs] JBossAS SVN: r95235 - projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Oct 20 22:12:38 EDT 2009


Author: johnbailey
Date: 2009-10-20 22:12:38 -0400 (Tue, 20 Oct 2009)
New Revision: 95235

Modified:
   projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VFSUtils.java
Log:
Update VFSUtils.getManifest to support a manifest file not existing

Modified: projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VFSUtils.java
===================================================================
--- projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VFSUtils.java	2009-10-21 02:09:46 UTC (rev 95234)
+++ projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VFSUtils.java	2009-10-21 02:12:38 UTC (rev 95235)
@@ -186,7 +186,7 @@
         if (archive == null)
             throw new IllegalArgumentException("Null archive");
         VirtualFile manifest = archive.getChild(JarFile.MANIFEST_NAME);
-        if (manifest == null) {
+        if (manifest == null || !manifest.exists()) {
             if (log.isTraceEnabled())
                 log.trace("Can't find manifest for " + archive.getPathName());
             return null;




More information about the jboss-cvs-commits mailing list