Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/339.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 更改intellij'中的超级开发模式端口参数;s GWT配置_Java_Gwt_Intellij Idea - Fatal编程技术网

Java 更改intellij'中的超级开发模式端口参数;s GWT配置

Java 更改intellij'中的超级开发模式端口参数;s GWT配置,java,gwt,intellij-idea,Java,Gwt,Intellij Idea,我有两个GWT项目,我想同时运行以进行开发。我喜欢使用Intellij的GWT配置运行它们,因为它为我提供了超级开发模式 问题是intellij的GWT配置有一些默认的开发模式参数值,比如端口号,我不知道如何更改它们 如果我传递dev mode参数-port 9264,日志会告诉我: Runing CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.7, -bindAddress, 127.0.0.1,

我有两个GWT项目,我想同时运行以进行开发。我喜欢使用Intellij的GWT配置运行它们,因为它为我提供了超级开发模式

问题是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]
,它不会替换预先存在的port参数,而是尝试加载模块

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配置中添加/替换开发模式参数吗?

端口参数将web服务器的端口更改为参数 -codeServerPort更改代码服务器的端口

使用此配置:

使用端口9264启动web服务器,使用端口8765启动代码服务器:


谢谢@el hoss,这使我确认可以为以下位置给出的参数指定
开发模式参数:

根据以下给出的规则:

Ha!所以我的思路是正确的,我只是没有意识到当日志显示
-port,9876
时,它实际上指的是
-codeServerPort
(这毫无意义)。不管怎样,这太棒了,它现在工作得很好。