mirror of https://github.com/apache/maven.git
Replacing all \ to / in paths - Eclipse writes windows paths with / and can't
read windows-native paths like C:\Documents and Settings\. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@226987 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2639914fee
commit
872e0972c8
|
@ -396,7 +396,7 @@ public class EclipseWriter
|
|||
|
||||
writer.startElement( "location" );
|
||||
|
||||
writer.writeText( sourceRoot );
|
||||
writer.writeText( sourceRoot.replaceAll("\\\\", "/") );
|
||||
|
||||
writer.endElement(); // location
|
||||
|
||||
|
@ -429,7 +429,7 @@ public class EclipseWriter
|
|||
|
||||
writer.startElement( "location" );
|
||||
|
||||
writer.writeText( resourceDir );
|
||||
writer.writeText( resourceDir.replaceAll( "\\\\", "/" ) );
|
||||
|
||||
writer.endElement(); // location
|
||||
|
||||
|
@ -458,7 +458,7 @@ public class EclipseWriter
|
|||
|
||||
writer.startElement( "location" );
|
||||
|
||||
writer.writeText( file.toString() );
|
||||
writer.writeText( file.toString().replaceAll( "\\\\", "/" ) );
|
||||
|
||||
writer.endElement(); // location
|
||||
|
||||
|
|
Loading…
Reference in New Issue