Skip to content

Commit

Permalink
fix a path-related bug on Windows
Browse files Browse the repository at this point in the history
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
earldouglas committed Jul 24, 2012
1 parent 7aa69b3 commit 08d54a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private object Eclipse {
<link>
<name>{ name }</name>
<type>2</type>
<location>{ file.getCanonicalPath }</location>
<location>{ file.getCanonicalPath.replaceAll("\\\\", "/") }</location>
</link>
}
}
Expand Down

0 comments on commit 08d54a5

Please sign in to comment.