You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2008/01/06 18:18:55 UTC
svn commit: r609348 -
/maven/plugins/trunk/maven-ant-plugin/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java
Author: dennisl
Date: Sun Jan 6 09:18:55 2008
New Revision: 609348
URL: http://svn.apache.org/viewvc?rev=609348&view=rev
Log:
[MANT-35] The generated maven-build.xml has paths that contain \ characters on Windows
Modified:
maven/plugins/trunk/maven-ant-plugin/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java
Modified: maven/plugins/trunk/maven-ant-plugin/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ant-plugin/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java?rev=609348&r1=609347&r2=609348&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ant-plugin/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java (original)
+++ maven/plugins/trunk/maven-ant-plugin/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java Sun Jan 6 09:18:55 2008
@@ -1130,7 +1130,8 @@
if ( parentDirs != null )
{
writer.startElement( "mkdir" );
- writer.addAttribute( "dir", "${maven.repo.local}/" + parentDirs.getPath() );
+ // Replace \ with / in the parent dir path
+ writer.addAttribute( "dir", "${maven.repo.local}/" + parentDirs.getPath().replace( '\\', '/' ) );
writer.endElement(); // mkdir
}