java - 在 intellij 的 GWT 配置中更改 Super Dev Mode 端口参数

标签 java gwt intellij-idea

我有两个 GWT 项目要同时运行以进行开发。我喜欢使用 Intellij 的 GWT 配置运行它们,因为它会为我处理 super 开发模式。

问题是 intellij 的 GWT 配置有一些 Dev Mode 参数的默认值,比如端口号,我不知道如何更改它们。

如果我传递开发模式参数 -port 9264,日志会告诉我:

Runing CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.7, -bindAddress, 127.0.0.1, -launcherDir, /home/coraythan/.IntelliJIdea14/system/gwt/code.63303291/Books.1f092f4b/run/www, -logLevel, INFO, com.mywebsite.books.Books]

所以那没有做任何事。

没有这样的空间 -port9264 我得到错误:

Unknown argument: -port9264
Google Web Toolkit 2.7.0
DevMode [-[no]startServer] [-port port-number | "auto"] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logdir directory] [-logLevel level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort port-number | "auto"] [-[no]superDevMode] [-server servletContainerLauncher[:args]] [-startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-modulePathPrefix ] [-workDir dir] [-XmethodNameDisplayMode NONE | ONLY_METHOD_NAME | ABBREVIATED | FULL] [-sourceLevel [auto, 1.6, 1.7]] [-XjsInteropMode [NONE, JS, CLOSURE]] [-[no]incremental] module[s] 

如果我添加方括号,看起来它应该有 [-port 9264],它不会替换预先存在的端口参数,并尝试加载模块

Runing CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.7, -bindAddress, 127.0.0.1, -launcherDir, /home/coraythan/.IntelliJIdea14/system/gwt/code.63303291/Books.1f092f4b/run/www, -logLevel, INFO, [-port, 9264], com.mywebsite.books.Books]
Super Dev Mode starting up
   workDir: /tmp/gwt-codeserver-7935707369622390541.tmp
   Loading inherited module '[-port'
      [ERROR] Unable to find '[-port.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
Loading modules
   [-port
      Loading inherited module '[-port'
         [ERROR] Unable to find '[-port.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] shell failed in doStartup method

有谁知道如何在 Intellij 的 GWT 配置中添加/替换开发模式参数?

最佳答案

-port 参数更改 web 服务器的端口,其中作为参数 -codeServerPort 更改代码服务器的端口。

使用这个配置:

enter image description here

启动9264端口的web服务器和8765端口的代码服务器:

enter image description here

关于java - 在 intellij 的 GWT 配置中更改 Super Dev Mode 端口参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29290393/

相关文章:

java - 如何使用 Java 修复 Selenium Webdriver 中的复选框单击问题?

java - 运行 Java 应用程序什么也不做

gwt - 如何: UiBinder + GWT MVP + multiple independent display areas

git - 如何将 IntelliJ 与 Subversion、Git 和 "git-svn"一起使用

java - Vigenere 解密奇数

java - 消息摘要哈希MD5

php - 将数组从 PHP 发送到 GWT 的问题

jakarta-ee - guava 之类的用于 Web 开发的 java 库

android - 当我添加 google maps api 时,.dex 文件超过 64k

java - 在IntelliJ IDEA中,项目本身也是一个模块吗?