Wednesday, February 29, 2012

Compiling from command line

/usr/lib/jvm/jdk1.6.0_26_32/bin/java -cp ~/Software/Java/gwt-trunk/build/staging/gwt-0.0.0/gwt-dev.jar -Xmx512m com.google.gwt.dev.Compiler -logLevel INFO -style OBFUSCATED -war ~/Software/Java/workspace/MyProject-AppEngine/war -localWorkers 4 project.Embed project.Project project.Mobile project.NativeMobile project.Gadget

I'm got:

Loading inherited module 'project.Embed'
   [ERROR] Unable to find 'project/Embed.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

So I added the source directory:

/usr/lib/jvm/jdk1.6.0_26_32/bin/java -cp ~/Software/Java/gwt-trunk/build/staging/gwt-0.0.0/gwt-dev.jar:~/Software/Java/workspace/MyProject-AppEngine/src/ -Xmx512m com.google.gwt.dev.Compiler -logLevel INFO -style OBFUSCATED -war ~/Software/Java/workspace/MyProject-AppEngine/war -localWorkers 4 project.Embed project.Project project.Mobile project.NativeMobile project.Gadget

And I got:

Loading inherited module 'project.Embed'
   Loading inherited module 'com.google.gwt.core.Core'
      [ERROR] Unable to find 'com/google/gwt/core/Core.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?


Will I have to add every client source directory / jar into the classpath? (probably yes?)

Is there a way to capture the exact command eclipse uses when compiling the GWT project? When I try (ps -fp <PID>), I don't see any path information... 

p.s. my goal is to checkout trunk, compile, and deploy gwt projects to appengine on my "build-machine" remotely from my notebook.  I got checkout and deploy working, I just need to be able to compile from command line.

Thanks!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/PbpgtkT5uBIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment