I would like to share some thoughts on the quickest way to develop web projects in eclipse without wasting time with the redeploy.
One thing that annoys me is to make a change in code and having to wait several minutes while a redeploy is made. I tried several solutions, including JRebel, but I found that rolling my own embedded server is the best option. For that I am using the jetty 7. So, I created in my GWT project (Dynamic Web Project in eclipse), a class called JettyDevServer that starts the server. This class listens to changes in the contexts/context.xml file to reload the changes I'm using the touch command to modify the context.xml and triggering the reload. I suggest you bind the F1 key (or any other key) to "Runs the last launched external tool" in the eclipse preferences to redeploy. The next link is a project for eclipse that shows what I did if anyone wants to try. It has support for annotations (it has an example with a DataSource), redeploying without losing your session and support security realms. http://dl.dropbox.com/u/5176435/jetty7.tar.bz2 (8MB - all needed jars included) The project should have three launchers: - gwt, starts gwt development mode - jetty7-server, start jetty embedded server - jetty7-reload-server, triggers redeploy (bind a key for this) Some notes: - this has been tested in the Linux - in the "External Tools Configurations" I use the command /bin/touch. I don't know what is the equivalent in Windows - use the "Web Deployment Assembly" to structure the WAR be used in another server (eg, Glassfish, Tomcat,...) I tested in a project with hundreds of jars and the deploy never exceeded one second. For that, I do not put the jars inside the WebContent/WEB-INF/lib since they are never modified (you can use the "Web Deployment Assembly" later when generating the WAR). Thanks for listening -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
