Skip to content

Commit ddea65b

Browse files
committed
Fix problems with spaces in path names under windows
1 parent b47f903 commit ddea65b

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

ext/JarMain.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ public class JarMain implements Runnable {
4242
URL mainClass = getClass().getResource(MAIN);
4343
URI uri;
4444
File file;
45+
String pathWithoutMain;
4546

4647
try {
4748
this.path = mainClass.toURI().getSchemeSpecificPart();
48-
uri = new URI(this.path.replace("!" + MAIN, ""));
49+
pathWithoutMain = mainClass.toURI().getRawSchemeSpecificPart().replace("!" + MAIN, "");
50+
uri = new URI(pathWithoutMain);
4951
}
5052
catch (URISyntaxException e) {
5153
throw new RuntimeException(e);

lib/warbler-pre-release-tillsc.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require 'warbler'

lib/warbler/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
#++
77

88
module Warbler
9-
VERSION = "2.0.5"
9+
VERSION = "2.0.5-pre"
1010
end

spec/sample_bundler/.bundle/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
BUNDLE_FROZEN: "true"
33
BUNDLE_PATH: "vendor/bundle"
44
BUNDLE_DISABLE_SHARED_GEMS: "1"
5+
BUNDLE_DEPLOYMENT: "true"
File renamed without changes.

0 commit comments

Comments
 (0)