jarbler 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c224e984f6fef69851706427a9bbf4d239c7ee86d98a1947bb64159ccc0367e0
4
- data.tar.gz: 90d9706ad021db6a58b254d140dab6039ff20f28646d11daaf3a271d88104515
3
+ metadata.gz: 5de0d62c0ac312179bc506c3cda49ed463e72e11e9d0c153551fc90ce8aa2fee
4
+ data.tar.gz: 94c1e161336e09cf9e4188819298ee7dbffd6702b1b6d3909993911a5ae886c8
5
5
  SHA512:
6
- metadata.gz: fb7a8443a9bf33830b0e48ea311eddbf5587932a80ff2dd5f71dc03056558b250247c3fea0ebfc51e07cb0489452165b733ef9fb7dca6d075371fcaa440966ec
7
- data.tar.gz: da4eabd1840367725dd28a899798c5c5f6b4c5da2e61fa6118e7da8508b5d414cf409217964acfa20be0a852e848b9d3ea84a6f43d179896b7f0f702d6a0f301
6
+ metadata.gz: 18f5af166aaa6a994521cfdf6efee1ddbbd5f70f40a04a2288095d9de83e54e3767b26e3321426d06622efcc9fd62e5962e8b6638dc6786de0d82d25180fb739
7
+ data.tar.gz: 7c3d03389ea1f41ab4e45e4988f0eae8e9fdb061bdf787922c27464ef46486c08543e3b2cad9ad8a862ba6e74f01629c776ad401a9a5ea2e1721c46a506a314e
@@ -187,7 +187,16 @@ class JarMain {
187
187
  zis.close();
188
188
  }
189
189
 
190
+ /**
191
+ * Create a new file with the given parent and name.
192
+ *
193
+ * @param destinationDir The parent directory.
194
+ * @param zipEntry The zip entry with name of the new file.
195
+ * @return The new File.
196
+ * @throws IOException If an I/O error occurs.
197
+ */
190
198
  private static File newFile(File destinationDir, ZipEntry zipEntry) throws IOException {
199
+ try {
191
200
  File destFile = new File(destinationDir, zipEntry.getName());
192
201
 
193
202
  String destDirPath = destinationDir.getCanonicalPath();
@@ -198,6 +207,13 @@ class JarMain {
198
207
  }
199
208
 
200
209
  return destFile;
210
+ } catch (IOException exception) {
211
+ System.out.println("JarMain.newFile: Error '"+ exception.getMessage() + "' while creating new file: '" + zipEntry.getName() + "' in dir '" + destinationDir.getName() + "'");
212
+ System.out.println("Full target dir name is: " + destinationDir.getCanonicalPath());
213
+ // Rethrow the exception
214
+ throw exception;
215
+ }
216
+
201
217
  }
202
218
 
203
219
  private static void debug(String msg) {
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jarbler
4
- VERSION = "0.1.7"
5
- VERSION_DATE = "2023-11-28
6
- "
4
+ VERSION = "0.1.8"
5
+ VERSION_DATE = "2024-03-04"
7
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jarbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Ramm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2024-03-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Pack a Ruby app combined with jRuby runtime and all its Gem dependencies
14
14
  into a jar file to simply run the app on any Java platform by '> java -jar file.jar'
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  - !ruby/object:Gem::Version
58
58
  version: '0'
59
59
  requirements: []
60
- rubygems_version: 3.2.3
60
+ rubygems_version: 3.5.6
61
61
  signing_key:
62
62
  specification_version: 4
63
63
  summary: Pack a Ruby app into a Java jar file