puniverse / capsule

Dead-Simple Packaging and Deployment for JVM Apps
http://capsule.io
Eclipse Public License 1.0
1.15k stars 100 forks source link

hyphenated paths cause errors (probably java.nio path parsing...) #118

Open joinr opened 6 years ago

joinr commented 6 years ago

I've been using capsule without issues that I just started deving on another machine/account. It's a windows 10 system. Running the capsule from git-bash, we get:

$ java -Dcapsule.log=verbose -jar marathon-4.1.4.jar CAPSULE: Jar: C:\Users\tom-admin\workspacenew\m4\target\capsules\marathon-4.1.4.jar CAPSULE: Platform: windows CAPSULE: Initializing app ID CAPSULE: Initialized app ID: marathon_4.1.4 CAPSULE: Launching app marathon_4.1.4 CAPSULE: Starting capsule server. CAPSULE: Binding capsule server at: 0.0.0.0:53342 CAPSULE: Using JVM: C:\Program Files\Java\jre1.8.0_152 CAPSULE: WARNING resolve [] was empty CAPSULE: Cache directory: C:\Users\tom-admin\AppData\Local\capsule CAPSULE: Creating temp file/dir C:\Users\tom-admin\AppData\Local\capsule\apps\marathon_4.1.4.lock CAPSULE: Locking C:\Users\tom-admin\AppData\Local\capsule\apps\marathon_4.1.4.lock CAPSULE: Extracting C:\Users\tom-admin\workspacenew\m4\target\capsules\marathon-4.1.4.jar to app cache directory C:\Users\tom-admin\AppData\Local\capsule\apps\marathon_4.1.4 CAPSULE: Unlocking C:\Users\tom-admin\AppData\Local\capsule\apps\marathon_4.1.4.lock CAPSULE: Cleanup CAPSULE EXCEPTION: Illegal char <"> at index 19: C:\users\tom-admin\" java.nio.file.InvalidPathException: Illegal char <"> at index 19: C:\users\tom-admin\" at sun.nio.fs.WindowsPathParser.normalize(Unknown Source) at sun.nio.fs.WindowsPathParser.parse(Unknown Source) at sun.nio.fs.WindowsPathParser.parse(Unknown Source) at sun.nio.fs.WindowsPath.parse(Unknown Source) at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source) at Capsule.path(Capsule.java:3603) at Capsule.toPath(Capsule.java:3615) at Capsule.getPlatformNativeLibraryPath0(Capsule.java:2378) at Capsule.getPlatformNativeLibraryPath(Capsule.java:2371) at Capsule.buildNativeLibraryPath(Capsule.java:2353) at Capsule.buildSystemProperties(Capsule.java:2315) at Capsule.buildSystemProperties(Capsule.java:2296) at Capsule.buildJavaProcess(Capsule.java:2182) at Capsule.buildProcess0(Capsule.java:1500) at Capsule.buildProcess(Capsule.java:1491) at Capsule.prelaunch0(Capsule.java:1464) at Capsule.prelaunch(Capsule.java:1457) at Capsule.prepareForLaunch(Capsule.java:1311) at Capsule.launch(Capsule.java:1240) at Capsule.main0(Capsule.java:391) at Capsule.main(Capsule.java:370)

I ran the capsule from another account (since this has worked fine for the past 6 months), with no hyphens, and it's fine.