[jboss-cvs] JBossAS SVN: r66854 - projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Nov 8 05:23:25 EST 2007


Author: alesj
Date: 2007-11-08 05:23:25 -0500 (Thu, 08 Nov 2007)
New Revision: 66854

Modified:
   projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer/ManifestDeployer.java
Log:
JBMICROCONT-183.

Modified: projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer/ManifestDeployer.java
===================================================================
--- projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer/ManifestDeployer.java	2007-11-08 10:06:11 UTC (rev 66853)
+++ projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer/ManifestDeployer.java	2007-11-08 10:23:25 UTC (rev 66854)
@@ -21,10 +21,10 @@
 */
 package org.jboss.deployers.vfs.spi.deployer;
 
-import java.io.InputStream;
 import java.util.jar.Manifest;
 
 import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit;
+import org.jboss.virtual.VFSUtils;
 import org.jboss.virtual.VirtualFile;
 
 /**
@@ -60,23 +60,7 @@
    @Override
    protected T parse(VFSDeploymentUnit unit, VirtualFile file, T root) throws Exception
    {
-      // todo JBMICROCONT-183 - update once we have new vfs snapshot
-      InputStream is = SecurityActions.openStream(file);
-      Manifest manifest;
-      try
-      {
-         manifest = new Manifest(is);
-      }
-      finally
-      {
-         try
-         {
-            is.close();
-         }
-         catch (Exception ignored)
-         {
-         }
-      }
+      Manifest manifest = VFSUtils.readManifest(file);
       return createMetaData(manifest);
    }
 }




More information about the jboss-cvs-commits mailing list