[izpack-changes] r1685 - izpack-src/trunk/src/lib/com/izforge/izpack/compiler
noreply at berlios.de
noreply at berlios.de
Sat Jan 6 15:10:54 CET 2007
Author: jponge
Date: 2007-01-06 15:10:53 +0100 (Sat, 06 Jan 2007)
New Revision: 1685
Modified:
izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
Log:
Fix for a previous patch by Nils Meier
Modified: izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java 2007-01-06 14:06:24 UTC (rev 1684)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java 2007-01-06 14:10:53 UTC (rev 1685)
@@ -1014,15 +1014,19 @@
if (zentry==null) break;
if (zentry.isDirectory()) continue;
- File temp = File.createTempFile("izpack", null);
- temp.deleteOnExit();
+ try {
+ File temp = File.createTempFile("izpack", null);
+ temp.deleteOnExit();
+
+ FileOutputStream out = new FileOutputStream(temp);
+ PackagerHelper.copyStream(zin, out);
+ out.close();
- FileOutputStream out = new FileOutputStream(temp);
- PackagerHelper.copyStream(zin, out);
- out.close();
+ pack.addFile(temp, targetdir + "/" + zentry.getName(), osList, override, additionals);
+ } catch (IOException e) {
+ throw new IOException("Couldn't create temporary file for "+zentry.getName()+" in archive "+archive+" ("+e.getMessage()+")");
+ }
- pack.addFile(temp, targetdir + "/" + zentry.getName(), osList, override, additionals);
-
}
fin.close();
}
More information about the izpack-changes
mailing list