Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsrinivasan2011-03-18 19:52:53 -0400
committerrsrinivasan2011-03-18 19:52:53 -0400
commitaf23331c769b53faee866199d3c6c06286366057 (patch)
treeb864aefcc31137b000b889849fdc6686ac665c2d
parent095ef2f20d694b10d941aeb66029b963ab3c29c2 (diff)
downloadwebtools.jsf-af23331c769b53faee866199d3c6c06286366057.tar.gz
webtools.jsf-af23331c769b53faee866199d3c6c06286366057.tar.xz
webtools.jsf-af23331c769b53faee866199d3c6c06286366057.zip
Bug 340427 - JarBasedJSFResource locks JARs
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/designtime/internal/resources/JarBasedJSFResource.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/designtime/internal/resources/JarBasedJSFResource.java b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/designtime/internal/resources/JarBasedJSFResource.java
index 0f2945dfa..3cad67ee9 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/designtime/internal/resources/JarBasedJSFResource.java
+++ b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/designtime/internal/resources/JarBasedJSFResource.java
@@ -8,6 +8,7 @@ import java.util.jar.JarFile;
import java.util.zip.ZipEntry;
import org.eclipse.jst.jsf.common.internal.resource.ContentTypeResolver;
+import org.eclipse.jst.jsf.core.internal.JSFCorePlugin;
/**
* A JSF Resource that references an entry in the jar. Because of changes in the
@@ -74,14 +75,13 @@ public class JarBasedJSFResource extends JSFResource implements IJarBasedJSFReso
{
if (jarFile != null)
{
-// try
-// {
-// // TODO
-//// jarFile.close();
-// } /*catch (IOException e)
-// {
-// // fall-through.
-// }*/
+ try
+ {
+ jarFile.close();
+ } catch (IOException ioex)
+ {
+ JSFCorePlugin.log("Error closing jar file", ioex); //$NON-NLS-1$
+ }
}
}
return false;

Back to the top