Skip to content

Commit

Permalink
Fix path issue in windows.
Browse files Browse the repository at this point in the history
hat-tip to @JamesEarlDouglas for original fix with this info:

Under Windows, when Eclipse imports a project it will replace
'C:\foo\bar\baz' with 'foo/bar/baz', dropping the 'C:\' and
replacing backslashes with forward slashes.  This causes
a problem in Eclipse, because it can't resolve 'foo/bar/baz'
as being on the C drive.  This fix adds an explicit replaceAll
from backslashes to forward slashes, which prevents Eclipse
from doing it wrongly.
  • Loading branch information
jsuereth committed Apr 11, 2013
1 parent 51b8fe9 commit e580b06
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -229,7 +229,7 @@ private object Eclipse extends EclipseSDTConfig {
<link>
<name>{ name }</name>
<type>2</type>
<location>{ location.getCanonicalPath }</location>
<location>{ location.getCanonicalPath.replaceAll("\\\\", "/") }</location>
</link>
}
}
Expand Down

0 comments on commit e580b06

Please sign in to comment.