问题描述
我目前正在尝试获取使用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 meUnknown 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)
- 运行->编辑配置->创建应用程序
- 设置主类com.google.gwt.dev.codeserver.CodeServer
- 程序参数:-src src/main/java -launcherDir {%PATH_TO_YOUR_CLIENT_PROJECT}/src/main/webapp {%MODULE1%MODULE2}
- Run -> Edit Configurations -> Create an Application
- Set Main class com.google.gwt.dev.codeserver.CodeServer
- 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)
-
工作目录:项目的路径(例如:/home/santran/ionoff/client)
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参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!