diff options
author | Andrew Haley <aph@redhat.com> | 2006-12-15 17:43:16 +0000 |
---|---|---|
committer | Andrew Haley <aph@redhat.com> | 2006-12-15 17:43:16 +0000 |
commit | 6c66f66fa80b8577e948722cfdc1deea6a4d0619 (patch) | |
tree | 56c5f9b1428b3f8d0592853284a9a7cfafbde271 /tools/gnu | |
parent | f04dac1ad96deab50a6c11f454994ea3cd7c3cfb (diff) | |
download | classpath-6c66f66fa80b8577e948722cfdc1deea6a4d0619.tar.gz |
2006-12-15 Andrew Haley <aph@redhat.com>
* tools/Makefile.am (TOOLS_ZIP): Pass -g -w to javac.
Create all-classes.lst that contains all source filenames.
Delete asm.lst.
* tools/gnu/classpath/tools/jar/Creator.java (writeFile): Close
the inputStream.
Diffstat (limited to 'tools/gnu')
-rw-r--r-- | tools/gnu/classpath/tools/jar/Creator.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/gnu/classpath/tools/jar/Creator.java b/tools/gnu/classpath/tools/jar/Creator.java index 55159660d..294549327 100644 --- a/tools/gnu/classpath/tools/jar/Creator.java +++ b/tools/gnu/classpath/tools/jar/Creator.java @@ -142,15 +142,18 @@ public class Creator throws IOException { boolean isDirectory = file.isDirectory(); - InputStream inputStream = null; if (isDirectory) { if (filename.charAt(filename.length() - 1) != '/') filename += '/'; + writeFile(isDirectory, null, filename, verbose); } else - inputStream = new FileInputStream(file); - writeFile(isDirectory, inputStream, filename, verbose); + { + InputStream inputStream = new FileInputStream(file); + writeFile(isDirectory, inputStream, filename, verbose); + inputStream.close(); + } } private void addEntries(ArrayList result, Entry entry) |