tycho
tycho copied to clipboard
Failure to read classpath from dev.properties file if project path contains whitespace
In an eclipse-test-plugin built on a Windows system, the classpath of the test plugin fails to be read from the dev.properties file if the project path contains whitespace. The problem can be easily reproduced by moving a project from a Windows path like C:\Users\ to C:\Users\Firstname Lastname\ and running a Surefire test that resolves the plugin classpath (using JDT/PDE). After moving, the project classpath will suddenly be resolved to the plugin root rather than the target/classes path that is written to the dev.properties file.
I'm not sure if the problem is the whitespace in the full path leading to the dev.properties file itself (usually ending with target\work\dev.properties) or the whitespace in the full path written into that file (usually ending with target\classes and target\test-classes).
Test project for demonstration: dev-properties-test.zip (move project to a path containing whitespace and watch the included Surefire test fail)
@gerking do you plan a fix, as we are currently prepare for a 3.0.5 Tycho release this might then be worth being included.
@gerking do you plan a fix, as we are currently prepare for a 3.0.5 Tycho release this might then be worth being included.
I'd love to, but unfortunately I'm currently not available. Also I'm quite unfamiliar with Tycho's implementation details, so please don't expect a fix in the near future