You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by fg...@apache.org on 2006/04/02 10:50:00 UTC
svn commit: r390800 -
/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/IdeUtils.java
Author: fgiust
Date: Sun Apr 2 00:49:59 2006
New Revision: 390800
URL: http://svn.apache.org/viewcvs?rev=390800&view=rev
Log:
MECLIPSE-72 wrong name of link is generated
be sure to not leave reserved chars in link name
Modified:
maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/IdeUtils.java
Modified: maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/IdeUtils.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/IdeUtils.java?rev=390800&r1=390799&r2=390800&view=diff
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/IdeUtils.java (original)
+++ maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/IdeUtils.java Sun Apr 2 00:49:59 2006
@@ -86,11 +86,12 @@
relative = absolutePath;
}
- relative = StringUtils.replace( relative, "\\", "/" ); //$NON-NLS-1$ //$NON-NLS-2$
+ relative = StringUtils.replace( relative, '\\', '/' );
if ( replaceSlashesWithDashes )
{
- relative = StringUtils.replace( relative, "/", "-" ); //$NON-NLS-1$ //$NON-NLS-2$
+ relative = StringUtils.replace( relative, '/', '-' );
+ relative = StringUtils.replace( relative, ':', '-' ); // remove ":" for absolute paths in windows
}
return relative;