[ 
http://jira.codehaus.org/browse/MGWT-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=208210#action_208210
 ] 

nicolas de loof commented on MGWT-161:
--------------------------------------

as a side note, the custom Shell is realted to PLXUTILS-107

Can't explain why, but overriding Shell.getRawCommandLine to create a 
One-entry-per-argument List instead of a single String allow to execute the 
command "as is" under Windows, without command line length limitation.



> gwt-maven-plugin does not work with spaces in project location on Linux
> -----------------------------------------------------------------------
>
>                 Key: MGWT-161
>                 URL: http://jira.codehaus.org/browse/MGWT-161
>             Project: Maven 2.x GWT Plugin
>          Issue Type: Bug
>         Environment: Linux
> gwt-maven-plugin 1.2
>            Reporter: Julien HENRY
>
> {code}
> [DEBUG] Configuring mojo 'org.codehaus.mojo:gwt-maven-plugin:1.2:i18n' -->
> [DEBUG]   (f) gen = /var/lib/hudson/workspace/My 
> Project/trunk/ui/target/.generated
> [DEBUG]   (f) generateDirectory = /var/lib/hudson/workspace/My 
> Project/trunk/ui/src/main/java
> [DEBUG]   (f) gwtVersion = 1.5.3
> [DEBUG]   (f) localRepository = 
> Repository[local|file:///var/lib/hudson/.m2/repository]
> [DEBUG]   (f) sourceDirectory = /var/lib/hudson/workspace/My 
> Project/trunk/ui/src/main/java
> [DEBUG] -- end configuration --
> [INFO] [gwt:i18n {execution: default}]
> [INFO] using GWT jars for specified version 1.5.3
> [DEBUG] ensureTargetPackageExists, targetName : com.mycompany.client, 
> targetPackage : com/mycompany/client
> [INFO] establishing classpath list (scope = compile)
> [DEBUG] candidate artifacts : 33
> [DEBUG] GWT SDK execution classpath :
> [DEBUG]    /var/lib/hudson/workspace/My Project/trunk/ui/src/main/java
> [DEBUG]    /var/lib/hudson/workspace/My Project/trunk/ui/src/main/resources
> [DEBUG]    /var/lib/hudson/workspace/My Project/trunk/ui/target/classes
> [DEBUG]    /var/lib/hudson/.m2/repository/com/extjs/gxt/1.2/gxt-1.2.jar
> [DEBUG]    
> /var/lib/hudson/.m2/repository/com/google/gwt/gwt-user/1.5.3/gwt-user-1.5.3.jar
> [...]
> [DEBUG] Execute command :
> /bin/sh -c /usr/java/jdk1.6.0_14/jre/bin/java -Xmx512m -classpath 
> '"/var/lib/hudson/workspace/My 
> Project/trunk/ui/src/main/java":"/var/lib/hudson/workspace/My 
> Project/trunk/ui/src/main/resources":"/var/lib/hudson/workspace/My 
> Project/trunk/ui/target/classes":"/var/lib/hudson/.m2/repository/com/extjs/gxt/1.2/gxt-1.2.jar":"/var/lib/hudson/.m2/repository/com/google/gwt/gwt-user/1.5.3/gwt-user-1.5.3.jar":"/var/lib/hudson/.m2/repository/com/google/gwt/gwt-dev/1.5.3/gwt-dev-1.5.3-linux-libs.zip":"/var/lib/hudson/.m2/repository/com/google/gwt/gwt-dev/1.5.3/gwt-dev-1.5.3-linux.jar":"/var/lib/hudson/.m2/repository/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA.jar":"/var/lib/hudson/.m2/repository/antlr/antlr/2.7.6/antlr-2.7.6.jar":"/var/lib/hudson/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar":"/var/lib/hudson/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar":"/var/lib/hudson/.m2/repository/xml-apis/xml-apis/1.3.02/xml-apis-1.3.02.jar":"/var/lib/hudson/.m2/repository/javax/transaction/jta/1.1/jta-1.1.jar":"/var/lib/hudson/.m2/repository/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar":"/var/lib/hudson/.m2/repository/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar":"/var/lib/hudson/.m2/repository/org/hibernate/ejb3-persistence/3.3.2.Beta1/ejb3-persistence-3.3.2.Beta1.jar":"/var/lib/hudson/.m2/repository/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar":"/var/lib/hudson/.m2/repository/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA.jar":"/var/lib/hudson/.m2/repository/mysql/mysql-connector-java/5.1.6/mysql-connector-java-5.1.6.jar":"/var/lib/hudson/.m2/repository/ch/qos/logback/logback-classic/0.9.14/logback-classic-0.9.14.jar":"/var/lib/hudson/.m2/repository/ch/qos/logback/logback-core/0.9.14/logback-core-0.9.14.jar":"/var/lib/hudson/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar":"/var/lib/hudson/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar":"/var/lib/hudson/.m2/repository/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar":"/var/lib/hudson/.m2/repository/xom/xom/1.0/xom-1.0.jar":"/var/lib/hudson/.m2/repository/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar":"/var/lib/hudson/.m2/repository/xalan/xalan/2.6.0/xalan-2.6.0.jar":"/var/lib/hudson/.m2/repository/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar":"/var/lib/hudson/workspace/My
>  
> Project/trunk/importBatch/target/importBatch-2.0.1-SNAPSHOT.jar":"/var/lib/hudson/.m2/repository/org/apache/poi/poi/3.1-FINAL/poi-3.1-FINAL.jar":"/var/lib/hudson/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar":"/var/lib/hudson/.m2/repository/log4j/log4j/1.2.13/log4j-1.2.13.jar":"/var/lib/hudson/.m2/repository/net/sf/opencsv/opencsv/2.0/opencsv-2.0.jar":"/var/lib/hudson/.m2/repository/weblogic/weblogic/10.3/weblogic-10.3.jar":"/var/lib/hudson/.m2/repository/org/apache/commons/commons-io/1.3.2/commons-io-1.3.2.jar":"/var/lib/hudson/.m2/repository/com/mycompany/sud/jfox/jfox-tools-passwordManager/3.2.0/jfox-tools-passwordManager-3.2.0.jar"'
>  com.google.gwt.i18n.tools.I18NSync -out '"/var/lib/hudson/workspace/My 
> Project/trunk/ui/src/main/java"' com.mycompany.client.ApplicationConstants
> [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError: 
> com/google/gwt/i18n/tools/I18NSync
> [ERROR] Caused by: java.lang.ClassNotFoundException: 
> com.google.gwt.i18n.tools.I18NSync
> [ERROR]       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> [ERROR]       at java.security.AccessController.doPrivileged(Native Method)
> [ERROR]       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> [ERROR]       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> [ERROR]       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> [ERROR]       at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> [ERROR]       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> [ERROR] Could not find the main class: com.google.gwt.i18n.tools.I18NSync.  
> Program will exit.
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> {code}
> I tried to run the command manually in a Linux shell and I get the same 
> behavior. The fix is to remove surrounding single quotes that are added when 
> the is a space in the path.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to