Super Dev Mode
使ってみる
以下はJDK 1.8 + Eclipse-neon(4.6.1) + Google plugin for Eclipse 4.6 + GWT 2.8.0の環境。
新規プロジェクトでGoogle>Web Application Projectを選択し、プロジェクト名をsample、パッケージ名をsampleとする。 サンプルコードが生成されるので、いきなり実行してみる。プロジェクトを右クリックし、Run As>Web Application.
コンソールに以下の表示がされ、
Running CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -launcherDir, C:\devel\workspace-neon\sample\war, -logLevel, INFO, -style, OBFUSCATED, sample.Sample] Super Dev Mode starting up workDir: C:\Users\admin\AppData\Local\Temp\gwt-codeserver-2387345311838190448.tmp 2016-11-08 15:01:33.398:INFO::main: Logging initialized @2217ms Loading Java files in sample.Sample. Module setup completed in 26664 ms 2016-11-08 15:01:59.149:INFO:oejs.Server:main: jetty-9.2.z-SNAPSHOT 2016-11-08 15:01:59.199:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@58e1199{/,null,AVAILABLE} 2016-11-08 15:01:59.225:INFO:oejs.ServerConnector:main: Started ServerConnector@3e60c10f{HTTP/1.1}{127.0.0.1:9876} 2016-11-08 15:01:59.225:INFO:oejs.Server:main: Started @28044ms The code server is ready at http://127.0.0.1:9876/ Code server started in 27.06 s ms 2016-11-08 15:01:59.399:INFO:oejs.Server:main: jetty-9.2.z-SNAPSHOT 2016-11-08 15:02:01.707:INFO:oejsh.ContextHandler:main: Started c.g.g.d.s.j.WebAppContextWithReload@1baf4afd{/,file:/C:/devel/workspace-neon/sample/war/,AVAILABLE}{C:\devel\workspace-neon\sample\war} 2016-11-08 15:02:01.713:INFO:oejs.ServerConnector:main: Started ServerConnector@79b32995{HTTP/1.1}{127.0.0.1:8888} 2016-11-08 15:02:01.714:INFO:oejs.Server:main: Started @30533ms
ブラウザで以下のURLにてアクセス可能
http://127.0.0.1:8888/Sample.html