Tuesday, February 21, 2012

GWT by hand (no xml configuration, no ant, no running gwt-dev.jar)

I'm interested in using GWT, but not with any of the utility programs
(except the compiler) it comes with, nor an XML configuration. That
is,

1) I'd like to have a 'public static void main(String[] args)' method
in a class which sets up a web server, configures the servlet etc.

2) I want to be able to run "Development Mode" by having my main
method called, and calling into whatever classes I need to to get it
going. I don't want to use gwt-dev.jar or any eclipse start magic.
(And of course, I don't want any method I'm calling to take an xml
file - and no lets not be smart and build one on the fly).

3) To run in "Production Mode" I'd like to call invoke the compiler
directly (no ant) to generate whatever files I need. Then actually
start my program and have it add any servlets it needs to Jetty's
context (lets for the sake of the example assume we're using Jetty),
and add handlers to serve the static content.

Everything I've need seems to use ant or some gwt programs to create
the directory structure or some eclipse magic project. I would like to
do this all by hand, and therefore I need to know *what* to do, and
I'd like to *know* this without having to having to look at the gwt
source code to figure out what it does when it's main() is invoked.

--
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+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