Author: ffang Date: Thu May 2 07:49:52 2013 New Revision: 1478296 URL: http://svn.apache.org/r1478296 Log: 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.6.x-fixes/ (props changed) cxf/branches/2.6.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java Propchange: cxf/branches/2.6.x-fixes/ ------------------------------------------------------------------------------ Merged /cxf/branches/2.7.x-fixes:r1478294 Merged /cxf/trunk:r1478291 Propchange: cxf/branches/2.6.x-fixes/ ------------------------------------------------------------------------------ Binary property 'svnmerge-integrated' - no diff available. Modified: cxf/branches/2.6.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.6.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java?rev=1478296&r1=1478295&r2=1478296&view=diff ============================================================================== --- cxf/branches/2.6.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java (original) +++ cxf/branches/2.6.x-fixes/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java Thu May 2 07:49:52 2013 @@ -603,7 +603,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);
