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 +4 -4
- data/lib/jarbler/JarMain.java +16 -0
- data/lib/jarbler/version.rb +2 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5de0d62c0ac312179bc506c3cda49ed463e72e11e9d0c153551fc90ce8aa2fee
|
4
|
+
data.tar.gz: 94c1e161336e09cf9e4188819298ee7dbffd6702b1b6d3909993911a5ae886c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18f5af166aaa6a994521cfdf6efee1ddbbd5f70f40a04a2288095d9de83e54e3767b26e3321426d06622efcc9fd62e5962e8b6638dc6786de0d82d25180fb739
|
7
|
+
data.tar.gz: 7c3d03389ea1f41ab4e45e4988f0eae8e9fdb061bdf787922c27464ef46486c08543e3b2cad9ad8a862ba6e74f01629c776ad401a9a5ea2e1721c46a506a314e
|
data/lib/jarbler/JarMain.java
CHANGED
@@ -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) {
|
data/lib/jarbler/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|