user3781239
user3781239

Reputation: 151

GWT SuperDevMode parameters in Intellij IDEA

I'm currently working on trying to get an existing Eclipse project built with Java EE and GWT to develop and run in IntelliJ IDEA. I'm trying to get SuperDevMode up and running but as soon as I try to pass into the DevMode parameter -src, the output gives me Unknown argument: -src.

I've checked Use Super Dev Mode in the Run/Debug Configurations but I can't think of anything else that might get this to work. Has anyone been able to get SuperDevMode parameters working in Intellij?

Output of console

Thanks!

Upvotes: 0

Views: 1254

Answers (1)

Sann Tran
Sann Tran

Reputation: 179

Steps (GWT >= 2.7.0)

  1. Run -> Edit Configurations -> Create an Application
  2. Set Main class com.google.gwt.dev.codeserver.CodeServer
  3. Program Arguments: -src src/main/java -launcherDir {%PATH_TO_YOUR_CLIENT_PROJECT}/src/main/webapp {%MODULE1 %MODULE2}

EX: -src src/main/java -launcherDir /home/santran/ionoff/client/src/main/webapp net.ionoff.center.IApp

(IApp.gwt.xml is in package net.ionoff.center)

  1. Working directory: Path to your project (Ex: /home/santran/ionoff/client)

  2. Apply -> close

  3. Add your project to App server (tomcat or jetty ...)

  4. Start app server, start your new Application in IntelliJ

Upvotes: 1

Related Questions