[英]Change Super Dev Mode port parameter in intellij's GWT Configuration
我有兩個 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]
,它不會替換預先存在的端口參數,並嘗試加載模塊
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 更改代碼服務器的端口。
使用此配置:
使用端口 9264 啟動 Web 服務器,使用端口 8765 啟動代碼服務器:
感謝@el-hoss,這讓我確認可以為http://www.gwtproject.org/articles/superdevmode.html 中給出的Dev Mode parameters
指定Dev Mode parameters
:
根據https://www.jetbrains.com/help/idea/run-debug-configuration-gwt.html給出的規則:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.