plugins/org.symbian.tools.tmw.core/src/org/symbian/tools/tmw/core/runtimes/LibraryInstallDelegate.java
changeset 480 b6d992b9b998
parent 479 518afa7c6d2f
--- a/plugins/org.symbian.tools.tmw.core/src/org/symbian/tools/tmw/core/runtimes/LibraryInstallDelegate.java	Tue Aug 31 11:58:53 2010 -0700
+++ b/plugins/org.symbian.tools.tmw.core/src/org/symbian/tools/tmw/core/runtimes/LibraryInstallDelegate.java	Tue Aug 31 15:21:04 2010 -0700
@@ -34,6 +34,7 @@
 import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
 import org.symbian.tools.tmw.core.TMWCore;
 import org.symbian.tools.tmw.core.projects.IProjectSetupConfig;
+import org.symbian.tools.tmw.core.utilities.NonClosingStream;
 
 public abstract class LibraryInstallDelegate implements IDelegate {
 
@@ -49,8 +50,8 @@
                 while (en != null) {
                     if (!en.isDirectory()) {
                         final IPath entry = new Path(en.getName());
-                        final IFile f = setupConfig.addFile(project, basePath.append(entry), stream,
-                                new NullProgressMonitor());
+                        final IFile f = setupConfig.addFile(project, basePath.append(entry), new NonClosingStream(
+                                stream), new NullProgressMonitor());
                         if (isIncludeFile(entry)) {
                             setupConfig.addIncludedJsFile(project, f);
                         }