Scanning a directory using spaces results in an exception being thrown. For example:
101:work alindreghiciu$ pax-run "some folder with spaces/plugins" --log=trace
__________ __________
\______ \_____ ___ ___ \______ \__ __ ____ ____ ___________
| ___/\__ \ \ \/ / | _/ | \/ \ / \_/ __ \_ __ \
| | / __ \_> < | | \ | / | \ | \ ___/| | \/
|____| (____ /__/\_ \ |____|_ /____/|___| /___| /\___ >__|
\/ \/ \/ \/ \/ \/
Pax Runner (1.2.0-SNAPSHOT) from OPS4J - http://www.ops4j.org
-------------------------------------------------------------
...
-> Searching for [file:/Users/alindreghiciu/work/some folder with spaces/plugins/]
-> Specification is not a valid file url: Illegal character in path at index 35: file:/Users/alindreghiciu/work/some folder with spaces/plugins/. Continue discovery...
-> Specification is not a valid file. Continue discovery...
-> Specification is not a valid zip: error in opening zip fileContinue discovery...
-> Specification is not a valid jar: Illegal character in path at index 35: file:/Users/alindreghiciu/work/some folder with spaces/plugins/
-> Specification urlSpec cannot be used. Stopping.
___
/ /
/ / Oops, there has been a problem!
/ /
/__/ org.ops4j.pax.scanner.MalformedSpecificationException: Specification [file:/Users/alindreghiciu/work/some folder with spaces/plugins/] could not be used
___
/__/
-> Exception catched during execution:
java.lang.RuntimeException: org.ops4j.pax.scanner.MalformedSpecificationException: Specification [file:/Users/alindreghiciu/work/some folder with spaces/plugins/] could not be used
at org.ops4j.pax.runner.Run.installBundles(Run.java:491)
at org.ops4j.pax.runner.Run.start(Run.java:217)
at org.ops4j.pax.runner.Run.main(Run.java:148)
at org.ops4j.pax.runner.Run.main(Run.java:120)
Caused by: org.ops4j.pax.scanner.MalformedSpecificationException: Specification [file:/Users/alindreghiciu/work/some folder with spaces/plugins/] could not be used
at org.ops4j.pax.scanner.dir.internal.DirScanner.scan(DirScanner.java:206)
at org.ops4j.pax.scanner.internal.ProvisionServiceImpl.scan(ProvisionServiceImpl.java:154)
at org.ops4j.pax.scanner.internal.ProvisionServiceImpl.scan(ProvisionServiceImpl.java:92)
at org.ops4j.pax.runner.Run.installBundles(Run.java:479)
... 3 more
Fixed in: 1.0.0
Votes: 0, Watches: 0
Referenced issues
blocks:
ops4j/org.ops4j.pax.runner#310 - White spaces in the pax runner root path causes pax runner to not find provisioning folder [PAXRUNNER-287]
Alin Dreghiciu created PAXSCANNER-6
Scanning a directory using spaces results in an exception being thrown. For example:
Fixed in: 1.0.0 Votes: 0, Watches: 0
Referenced issues
blocks: