How to run Google Web Toolkit applications from the command line?

I am currently running the StockWatcher demo in Eclipse. This uses the built-in servlet container, which is suitable for my purposes. The only change I would like to make is from the command line, not inside Eclipse. Does anyone know which command I use and which classpath this requires?

Edit - I have not used maven. I created a project using only the eclipse and gwt plugin.

+3
source share
3 answers

If you used the webAppCreator wizard (I see that you used the Eclipse plugin, but maybe they both used the same code inside), you should have ant script ( build.xml) generated for you. With it, you can run the GWT application through targets, therefore:

  • ant hosted - run placement mode (or development mode, I'm looking at a pretty old ant script)
  • ant gwtc - compile JS
  • ant war, ant buildetc.

See what's in this file ( build.xml) for a better understanding of what is available and what you can do.

Update: see here for documentation on webAppCreator and available ant targets.

+2
source

maven . ( maven gwt)

mvn jetty:run

maven gwt

maven jetty

0

Have you used Maven for this project? If so, you can run it mvn gwt:runfrom the command line

0
source

Source: https://habr.com/ru/post/1752410/


All Articles