You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ba...@apache.org on 2008/09/18 10:07:28 UTC
svn commit: r696593 -
/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/IdeUtils.java
Author: baerrach
Date: Thu Sep 18 01:07:28 2008
New Revision: 696593
URL: http://svn.apache.org/viewvc?rev=696593&view=rev
Log:
Minor logic reshuffle.
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/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/ide/IdeUtils.java?rev=696593&r1=696592&r2=696593&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 Thu Sep 18 01:07:28 2008
@@ -410,10 +410,10 @@
// The absolutePath is assumed to be: basedirPath + Separator + fileToAdd
// In the case of a windows root directory the Separator is missing since it is contained within
// basedirPath.
- int length = basedirPath.length();
- if ( !basedirPath.endsWith( "\\" ) )
+ int length = basedirPath.length() + 1;
+ if ( basedirPath.endsWith( "\\" ) )
{
- length++;
+ length--;
}
relative = absolutePath.substring( length );
}