Author: olamy
Date: Thu Oct 30 22:55:31 2014
New Revision: 1635634

URL: http://svn.apache.org/r1635634
Log:
[MTOMCAT-286] Integration test fails on Windows
Submitted by  Dennis Lundberg

Modified:
    
tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java

Modified: 
tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java
URL: 
http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java?rev=1635634&r1=1635633&r2=1635634&view=diff
==============================================================================
--- 
tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java
 (original)
+++ 
tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractExecWarMojo.java
 Thu Oct 30 22:55:31 2014
@@ -565,7 +565,8 @@ public abstract class AbstractExecWarMoj
             {
                 sourceFileInputStream = new FileInputStream( inputFile );
 
-                archiveOutputStream.putArchiveEntry( new JarArchiveEntry( 
destinationPath + includeFileName ) );
+                // MTOMCAT-286 Need to replace \ with / in includeFileName
+                archiveOutputStream.putArchiveEntry( new JarArchiveEntry( 
destinationPath + StringUtils.replace( includeFileName, "\\", "/" ) ) );
                 IOUtils.copy( sourceFileInputStream, archiveOutputStream );
                 archiveOutputStream.closeArchiveEntry();
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to