tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccorden...@apache.org
Subject svn commit: r981200 - /tapestry/tapestry5/trunk/tapestry-component-report/src/main/java/org/apache/tapestry/mojo/ComponentReport.java
Date Sun, 01 Aug 2010 10:46:42 GMT
Author: ccordenier
Date: Sun Aug  1 10:46:42 2010
New Revision: 981200

URL: http://svn.apache.org/viewvc?rev=981200&view=rev
Log:
Escape characters in argument paths for windows OS paths (TAP5-871)

Modified:
    tapestry/tapestry5/trunk/tapestry-component-report/src/main/java/org/apache/tapestry/mojo/ComponentReport.java

Modified: tapestry/tapestry5/trunk/tapestry-component-report/src/main/java/org/apache/tapestry/mojo/ComponentReport.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-component-report/src/main/java/org/apache/tapestry/mojo/ComponentReport.java?rev=981200&r1=981199&r2=981200&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-component-report/src/main/java/org/apache/tapestry/mojo/ComponentReport.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-component-report/src/main/java/org/apache/tapestry/mojo/ComponentReport.java
Sun Aug  1 10:46:42 2010
@@ -15,6 +15,8 @@
 package org.apache.tapestry.mojo;
 
 import nu.xom.*;
+
+import org.apache.commons.lang.StringEscapeUtils;
 import org.apache.commons.lang.StringUtils;
 import org.apache.commons.lang.SystemUtils;
 import org.apache.maven.artifact.Artifact;
@@ -836,7 +838,7 @@ public class ComponentReport extends Abs
         for (String path : paths)
         {
             builder.append(sep);
-            builder.append(path);
+            builder.append(StringEscapeUtils.escapeJava(path));
 
             sep = SystemUtils.PATH_SEPARATOR;
         }



Mime
View raw message