How to compile a deployable war from a GWT-Project in Eclipse?

1,085 views
Skip to first unread message

Andreas Kahl

unread,
Oct 5, 2009, 11:54:02 AM10/5/09
to Google Web Toolkit
Hello everyone,

I may be sitting on my ears, but could someone please tell me how to
compile a war-file from a GWT Project either via command line or in
Eclipse/Googlipse.
- File -> Export -> WAR does not work (When I enter the project's name
in the Dialog box 'Web project', it always says 'Module name is
invalid')
- Command line 'ant build' doestn't work either: there is no build.xml
created by eclipse

And finally: Is there a way to disable code obfuscation for debugging
when using the 'Compile/Browse'-Option in hosted browser. (Currently
my project runs as expected in hosted mode, but it doesn't when being
opened in a browser with that option)

Thanks for your help.

Jason Parekh

unread,
Oct 5, 2009, 4:34:51 PM10/5/09
to google-we...@googlegroups.com
On Mon, Oct 5, 2009 at 11:54 AM, Andreas Kahl <Andrea...@gmx.net> wrote:

Hello everyone,

I may be sitting on my ears, but could someone please tell me how to
compile a war-file from a GWT Project either via command line or in
Eclipse/Googlipse.
- File -> Export -> WAR does not work (When I enter the project's name
in the Dialog box 'Web project', it always says 'Module name is
invalid')
- Command line 'ant build' doestn't work either: there is no build.xml
created by eclipse

Hi Andreas,

We haven't integrated into Eclipse for this feature yet.  The way people accomplish this is a GWT compile followed by a jar-ing up of the war/ folder manually.
 

And finally: Is there a way to disable code obfuscation for debugging
when using the 'Compile/Browse'-Option in hosted browser. (Currently
my project runs as expected in hosted mode, but it doesn't when being
opened in a browser with that option)

You can initiate a GWT compile through Eclipse instead of hosted mode, which has a dropdown for selecting your output style.  Right-click your project, Google, GWT compile.

Hope this helps,
jason
 

Thanks for your help.



Andreas Kahl

unread,
Oct 6, 2009, 4:51:13 AM10/6/09
to Google Web Toolkit
Thanks Jason,

now it works as you sugggeted via Command Line
cd <projectDir>/war/
jar cvf WarFileName.war .

On 5 Okt., 22:34, Jason Parekh <jasonpar...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages