Hello all, I am trying to run an ant build script that compiles GWT. This script includes a large number of libraries, each with a relatively long path. My GWT code only touches some of these libraries; however, it is convenient to include all of the libaries from the directory containing all libraries that I use for this and all of the other applications I am developing. Here is the relevant portion of my build script:
<path id="gwt.project.class.path"> <pathelement location="gen"/> <pathelement location="${gwt.sdk}/gwt-user.jar"/> <fileset dir="${gwt.sdk}" includes="gwt-dev*.jar"/> <fileset dir="${smartgwt.sdk}" includes="smartgwt*.jar"/> <!-- Add any additional non-server libs (such as JUnit) --> <fileset dir="lib" includes="**/*.jar"/> </path> <target name="gwtc" depends="compileApp" description="GWT compile to JavaScript" unless="noGWTModule"> <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler"> <classpath> <pathelement location="src"/> <path refid="gwt.project.class.path"/> </classpath> <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError --> <jvmarg value="-Xmx256M"/> <!-- Additional arguments like -style PRETTY or -logLevel DEBUG --> <arg value="${gwt.module}"/> <arg value="-war" /> <arg value="${gwt.gen.dir}" /> </java> </target> When I try to run this, I get the following error: java.io.IOException: CreateProcess: "C:\Program Files\Java \jdk1.5.0_11\jre\bin\java.exe" -Xmx256M -classpath "C:\Program Files \Common Files\eclipse\workspace\development\src;C:\Program Files \Common Files\eclipse\workspace\development\lib\build \hbBuildSupport.jar;C:\Program Files\Common Files\eclipse\workspace \development\lib\db\hibernate\ehcache.jar;C:\Program Files\Common Files \eclipse\workspace\development\lib\db\hibernate\hibernate- annotations.jar;C:\Program Files\Common Files\eclipse\workspace \development\lib\db\hibernate\hibernate-commons-annotations.jar;C: \Program Files\Common Files\eclipse\workspace\development\lib\db \hibernate\hibernate-entitymanager.jar;C:\Program Files\Common Files \eclipse\workspace\development\lib\db\hibernate\hibernate-tools.jar;C: \Program Files\Common Files\eclipse\workspace\development\lib\db \hibernate\hibernate-validator.jar;C:\Program Files\Common Files \eclipse\workspace\development\lib\db\hibernate\hibernate3.jar;C: \Program Files\Common Files\eclipse\workspace\development\lib\db \hibernate\javassi� It seems that something at somepoint of the compilation, the library paths are getting truncated. Could this be due to some character limit on CreateProcess? This CreateProcess command string gets to be only about 1024 , which seems like a small limit. Is there anyway to increase this limit? Any thoughts/solutions/workarounds appreciated. Thanks, Mayur --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---