maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From epunza...@apache.org
Subject svn commit: r389009 - /maven/sandbox/plugins/maven-changelog-plugin/src/main/java/org/apache/maven/changelog/ChangeLogReport.java
Date Mon, 27 Mar 2006 02:54:37 GMT
Author: epunzalan
Date: Sun Mar 26 18:54:36 2006
New Revision: 389009

URL: http://svn.apache.org/viewcvs?rev=389009&view=rev
Log:
PR: MCHANGELOG-11
Submitted by: Martin Johannesen

Fixed bug on how changelog determines absolute paths.

Modified:
    maven/sandbox/plugins/maven-changelog-plugin/src/main/java/org/apache/maven/changelog/ChangeLogReport.java

Modified: maven/sandbox/plugins/maven-changelog-plugin/src/main/java/org/apache/maven/changelog/ChangeLogReport.java
URL: http://svn.apache.org/viewcvs/maven/sandbox/plugins/maven-changelog-plugin/src/main/java/org/apache/maven/changelog/ChangeLogReport.java?rev=389009&r1=389008&r2=389009&view=diff
==============================================================================
--- maven/sandbox/plugins/maven-changelog-plugin/src/main/java/org/apache/maven/changelog/ChangeLogReport.java
(original)
+++ maven/sandbox/plugins/maven-changelog-plugin/src/main/java/org/apache/maven/changelog/ChangeLogReport.java
Sun Mar 26 18:54:36 2006
@@ -1151,7 +1151,18 @@
             absPath += baseToken;
         }
 
-        return absPath + target.substring( 1 );
+        if ( !absPath.endsWith( "/" ) )
+        {
+            absPath += "/";
+        }
+
+        String newTarget = target;
+        if ( newTarget.startsWith( "/" ) )
+        {
+            newTarget = newTarget.substring( 1 );
+        }
+
+        return absPath + newTarget;
     }
 
     /**



Mime
View raw message