Commit 79ebf22
committed
EclipseHelper: handle spaces in the directory path
Even if the relative paths in class path cannot have spaces, the
directories making up the class path can very well contain spaces
somewhere along the lines.
By using the FileUtils to convert from a file: URL to a File, we
handle spaces and all kinds of funny characters in the directory
names at the same time.
Pointed out by Christian Dietz.
Incidentally, this also fixes *another* problem Christian pointed
out: on Windows, the file: URLs cannot be turned into proper
paths by stripping the "file:" prefix because the URLs start with
a slash to indicate absolute paths, then continue with the DOS
style drive letter and a colon because that is what Windows calls
an absolute path.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent a71ebdf commit 79ebf22
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
201 | | - | |
| 203 | + | |
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
| |||
0 commit comments