avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/extension/src/java/org/apache/avalon/excalibur/packagemanager/impl DefaultExtensionManager.java
Date Mon, 07 Oct 2002 06:20:14 GMT
donaldp     2002/10/06 23:20:14

  Modified:    extension/src/java/org/apache/avalon/excalibur/packagemanager/impl
                        DefaultExtensionManager.java
  Log:
  Make sure exception on getManifest will not leave jar file open
  
  Revision  Changes    Path
  1.4       +2 -3      jakarta-avalon-excalibur/extension/src/java/org/apache/avalon/excalibur/packagemanager/impl/DefaultExtensionManager.java
  
  Index: DefaultExtensionManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/extension/src/java/org/apache/avalon/excalibur/packagemanager/impl/DefaultExtensionManager.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DefaultExtensionManager.java	2 Oct 2002 01:52:20 -0000	1.3
  +++ DefaultExtensionManager.java	7 Oct 2002 06:20:14 -0000	1.4
  @@ -323,10 +323,9 @@
       {
           final File file = archive.getCanonicalFile();
           final JarFile jarFile = new JarFile( file );
  -        final Manifest manifest = jarFile.getManifest();
  -
           try
           {
  +            final Manifest manifest = jarFile.getManifest();
               if( null == manifest )
               {
                   return null;
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message