maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject svn commit: r1670187 - /maven/release/trunk/maven-release-manager/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java
Date Mon, 30 Mar 2015 20:19:50 GMT
Author: rfscholte
Date: Mon Mar 30 20:19:50 2015
New Revision: 1670187

URL: http://svn.apache.org/r1670187
Log:
[MRELEASE-871] Release Tag wrongly created when invoked pom.xml path contains a '.'
Escape ervery dot in regexp (otherwise it's any character)

Modified:
    maven/release/trunk/maven-release-manager/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java

Modified: maven/release/trunk/maven-release-manager/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java
URL: http://svn.apache.org/viewvc/maven/release/trunk/maven-release-manager/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java?rev=1670187&r1=1670186&r2=1670187&view=diff
==============================================================================
--- maven/release/trunk/maven-release-manager/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java
(original)
+++ maven/release/trunk/maven-release-manager/src/main/java/org/apache/maven/shared/release/util/ReleaseUtil.java
Mon Mar 30 20:19:50 2015
@@ -271,7 +271,7 @@ public class ReleaseUtil
         {
             // normalize
             url = url.replaceAll( "/\\./", "/" ).replaceAll( "/\\.$", "" ).
-                            replaceAll( "/[^/]+/../", "/" ).replaceAll("/[^/]+/..$","");
+                            replaceAll( "/[^/]+/\\.\\./", "/" ).replaceAll("/[^/]+/\\.\\.$","");
 
             int index = url.length();
             String suffix = "";



Mime
View raw message