Author: evenisse
Date: Tue Jan 10 12:56:22 2006
New Revision: 367792

URL: http://svn.apache.org/viewcvs?rev=367792&view=rev
Log:
o Check if it's a windows path
o Escape ":"

Modified:
    
maven/plugins/trunk/maven-resources-plugin/src/main/java/org/apache/maven/plugin/resources/ReflectionProperties.java

Modified: 
maven/plugins/trunk/maven-resources-plugin/src/main/java/org/apache/maven/plugin/resources/ReflectionProperties.java
URL: 
http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-resources-plugin/src/main/java/org/apache/maven/plugin/resources/ReflectionProperties.java?rev=367792&r1=367791&r2=367792&view=diff
==============================================================================
--- 
maven/plugins/trunk/maven-resources-plugin/src/main/java/org/apache/maven/plugin/resources/ReflectionProperties.java
 (original)
+++ 
maven/plugins/trunk/maven-resources-plugin/src/main/java/org/apache/maven/plugin/resources/ReflectionProperties.java
 Tue Jan 10 12:56:22 2006
@@ -51,9 +51,17 @@
         {
             value = ReflectionValueExtractor.evaluate( "" + key , project );
 
-            if ( escapedBackslashes && value != null && 
"java.lang.String".equals( value.getClass().getName() ) )
+            if ( escapedBackslashesInFilePath && value != null &&
+                "java.lang.String".equals( value.getClass().getName() ) )
             {
-                value = StringUtils.replace( (String)value, "\\", "\\\\" );
+                String val = (String) value;
+
+                // Check if it's a windows path
+                if ( val.indexOf( ":\\" ) == 1 )
+                {
+                    value = StringUtils.replace( (String)value, "\\", "\\\\" );
+                    value = StringUtils.replace( (String)value, ":", "\\:" );
+                }
             }
         }
         catch ( Exception e ) 


Reply via email to