升级GWT 2.3.0后,编译和调试模式的变化(属个人备忘,非详细)

阅读更多
属个人备忘,非详细。

1、编译的变化:

编译时,由过去的 
com.google.gwt.dev.GWTCompiler -out 
变为:
com.google.gwt.dev.Compiler -war


@echo off

echo [INFO] GWT 2.3.0 Compiler to JavaScript

set JAVA_HOME="D:\ProgramFiles\Java\jdk1.6.0_18"
set path="%JAVA_HOME%\bin"
set JAVA_OPTS='-Xms256m -Xmx512m'

@echo off
java -Xmx512M -cp "%~dp0\src\main\java;%~dp0\target\sample\WEB-INF\classes;%M2_REPO%\com\google\gwt\validation-api\1.0.0.GA\validation-api-1.0.0.GA.jar;%M2_REPO%\com\google\gwt\gwt-user\2.3.0\gwt-user-2.3.0.jar;%M2_REPO%\com\google\gwt\gwt-dev\2.3.0\gwt-dev-2.3.0.jar;" com.google.gwt.dev.Compiler -war "%~dp0\war" %* com.brofe.Sample
if ERRORLEVEL 1 goto error
if ERRORLEVEL 0 goto exit
:error
pause
:exit


2、调试模式的变化:

Main Class:com.google.gwt.dev.DevMode
args:-war target/noteside -startupUrl sample/Sample.html com.brofe.Sample -noserver -port 8088
VM:-Xms126m -Xmx512m
依赖:除项目Client包下的源码外,还需:gwt-dev-2.3.0.jar、gwt-user-2.3.0.jar、validation-api-1.0.0.jar

你可能感兴趣的:(GWT)