You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2013/05/03 09:38:33 UTC
svn commit: r1478663 - in /cxf/branches/2.5.x-fixes: ./
maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java
Author: ffang
Date: Fri May 3 07:38:33 2013
New Revision: 1478663
URL: http://svn.apache.org/r1478663
Log:
Merged revisions 1478296 via svnmerge from
https://svn.apache.org/repos/asf/cxf/branches/2.6.x-fixes
................
r1478296 | ffang | 2013-05-02 15:49:52 +0800 (四, 02 5 2013) | 16 lines
Merged revisions 1478294 via svnmerge from
https://svn.apache.org/repos/asf/cxf/branches/2.7.x-fixes
................
r1478294 | ffang | 2013-05-02 15:35:47 +0800 (四, 02 5 2013) | 9 lines
Merged revisions 1478291 via svnmerge from
https://svn.apache.org/repos/asf/cxf/trunk
........
r1478291 | ffang | 2013-05-02 15:27:29 +0800 (四, 02 5 2013) | 1 line
[CXF-4982]Codegen maven plugin fails forked execution on Windows when default tmp dir contain space
........
................
................
Modified:
cxf/branches/2.5.x-fixes/ (props changed)
cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java
Propchange: cxf/branches/2.5.x-fixes/
------------------------------------------------------------------------------
Merged /cxf/branches/2.7.x-fixes:r1478294
Merged /cxf/trunk:r1478291
Merged /cxf/branches/2.6.x-fixes:r1478296
Propchange: cxf/branches/2.5.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified: cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java?rev=1478663&r1=1478662&r2=1478663&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java (original)
+++ cxf/branches/2.5.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java Fri May 3 07:38:33 2013
@@ -582,7 +582,13 @@ public abstract class AbstractCodegenMoh
jar.createArchive();
cmd.createArg().setValue("-jar");
- cmd.createArg().setValue(file.getAbsolutePath());
+
+ String tmpFilePath = file.getAbsolutePath();
+ if (tmpFilePath.contains(" ")) {
+ //ensure the path is in double quotation marks if the path contain space
+ tmpFilePath = "\"" + tmpFilePath + "\"";
+ }
+ cmd.createArg().setValue(tmpFilePath);
} catch (Exception e1) {
throw new MojoExecutionException("Could not create runtime jar", e1);