Intellij IDEA中的GWT SuperDevMode参数 [英] GWT SuperDevMode parameters in Intellij IDEA

查看:263
本文介绍了Intellij IDEA中的GWT SuperDevMode参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试获取使用Java EE和GWT构建的现有Eclipse项目,以在IntelliJ IDEA中进行开发和运行.我正在尝试启动并运行SuperDevMode,但是一旦尝试传递给DevMode参数-src,输出就会给我 Unknown argument: -src.

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.

我已经在Run/Debug Configurations中检查了Use Super Dev Mode,但是我想不出任何其他方法可以使它起作用.有人能在Intellij中获得SuperDevMode参数吗?

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?

谢谢!

推荐答案

步骤(GWT> = 2.7.0)

Steps (GWT >= 2.7.0)

  1. 运行->编辑配置->创建应用程序
  2. 设置主类com.google.gwt.dev.codeserver.CodeServer
  3. 程序参数: -src src/main/java -launcherDir {%PATH_TO_YOUR_CLIENT_PROJECT}/src/main/webapp {%MODULE1%MODULE2}
  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

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

(IApp.gwt.xml位于net.ionoff.center软件包中)

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

  1. 工作目录:项目的路径 (例如:/home/santran/ionoff/client)

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

应用->关闭

将项目添加到App服务器(tomcat或码头...)

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

启动应用程序服务器,在IntelliJ中启动新的应用程序

Start app server, start your new Application in IntelliJ

这篇关于Intellij IDEA中的GWT SuperDevMode参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆