You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by cc...@apache.org on 2010/08/01 12:46:42 UTC

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

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;
         }