maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject svn commit: r637213 - /maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/util/ResourceExtractor.java
Date Fri, 14 Mar 2008 18:57:45 GMT
Author: brianf
Date: Fri Mar 14 11:57:42 2008
New Revision: 637213

URL: http://svn.apache.org/viewvc?rev=637213&view=rev
Log:
MNG-3465 close the output streams

Modified:
    maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/util/ResourceExtractor.java

Modified: maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/util/ResourceExtractor.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/util/ResourceExtractor.java?rev=637213&r1=637212&r2=637213&view=diff
==============================================================================
--- maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/util/ResourceExtractor.java
(original)
+++ maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/util/ResourceExtractor.java
Fri Mar 14 11:57:42 2008
@@ -78,13 +78,14 @@
                     } else {
                         FileOutputStream fos = new FileOutputStream(destFile);
                         IOUtil.copy(z.getInputStream(ze), fos);
+                        fos.close();
                     }
                 }
             }
         } else {
             FileOutputStream fos = new FileOutputStream(dest);
             IOUtil.copy(cl.getResourceAsStream(resourcePath), fos);
-            
+            fos.close();
         }
     } 
 



Mime
View raw message