Bob the builder fails with a java.io.FileNotFoundException
when the path contains spaces. Specifically, I had spaces in my project name:
$ java -jar bob.jar --email foo@bar.com --auth 12345 resolve
Infinity%Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: /Users/dossy/Code/Test%20and%20Test/game/bob.jar (No such file or directory)
at com.dynamo.bob.ClassLoaderResourceScanner.scan(ClassLoaderResourceScanner.java:88)
at com.dynamo.bob.fs.ClassLoaderMountPoint.walk(ClassLoaderMountPoint.java:95)
at com.dynamo.bob.fs.AbstractFileSystem.walk(AbstractFileSystem.java:96)
at com.dynamo.bob.Project.findSources(Project.java:1224)
at com.dynamo.bob.Bob.createProject(Bob.java:274)
at com.dynamo.bob.Bob.main(Bob.java:310)
Caused by: java.io.FileNotFoundException: /Users/dossy/Code/Test%20and%20Test/game/bob.jar (No such file or directory)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:225)
at java.util.zip.ZipFile.<init>(ZipFile.java:155)
at java.util.jar.JarFile.<init>(JarFile.java:166)
at java.util.jar.JarFile.<init>(JarFile.java:103)
at com.dynamo.bob.ClassLoaderResourceScanner.scanJar(ClassLoaderResourceScanner.java:56)
at com.dynamo.bob.ClassLoaderResourceScanner.scan(ClassLoaderResourceScanner.java:84)
... 5 more
If I rename the project folder and remove spaces from all folders in the path, it works as expected.