Compiling from command line

77 views
Skip to first unread message

Nick Siderakis

unread,
Feb 29, 2012, 5:43:00 PM2/29/12
to google-we...@googlegroups.com
/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!

Reply all
Reply to author
Forward
0 new messages