Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fix path issue in windows.

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...
1 parent 51b8fe9 commit e580b06d7f57a716e7700510405a244f8169698d @jsuereth jsuereth committed
2  sbteclipse-core/src/main/scala/com/typesafe/sbteclipse/core/Eclipse.scala
@@ -229,7 +229,7 @@ private object Eclipse extends EclipseSDTConfig {
<name>{ name }</name>
- <location>{ location.getCanonicalPath }</location>
+ <location>{ location.getCanonicalPath.replaceAll("\\\\", "/") }</location>

0 comments on commit e580b06

Please sign in to comment.
Something went wrong with that request. Please try again.