我正在关注 Google Web Toolkit 项目的本教程:https ://developers.google.com/web-toolkit/gettingstarted
除了最后我打电话时,一切似乎都有效ant build
。
C:\Users\Hebron\Dropbox\IP\gwt-2.5.1\MyWebApp>ant build
Buildfile: C:\Users\Hebron\Dropbox\IP\gwt-2.5.1\MyWebApp\build.xml
libs:
[mkdir] Created dir: C:\Users\Hebron\Dropbox\IP\gwt-2.5.1\MyWebApp\war\WEB-INF\lib
[copy] Copying 1 file to C:\Users\Hebron\Dropbox\IP\gwt-2.5.1\MyWebApp\war\WEB-INF\lib
[copy] Copying 1 file to C:\Users\Hebron\Dropbox\IP\gwt-2.5.1\MyWebApp\war\WEB-INF\lib
javac:
[mkdir] Created dir: C:\Users\Hebron\Dropbox\IP\gwt-2.5.1\MyWebApp\war\WEB-INF\classes
[javac] C:\Users\Hebron\Dropbox\IP\gwt-2.5.1\MyWebApp\build.xml:29: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 5 source files to C:\Users\Hebron\Dropbox\IP\gwt-2.5.1\MyWebApp\war\WEB-INF\classes
[copy] Copying 1 file to C:\Users\Hebron\Dropbox\IP\gwt-2.5.1\MyWebApp\war\WEB-INF\classes
gwtc:
[java] Compiling module com.impulse.mywebapp.MyWebApp
[java] Compiling 6 permutations
[java] Compiling permutation 0...
[java] Compiling permutation 1...
[java] Compiling permutation 2...
[java] Compiling permutation 3...
[java] Compiling permutation 4...
[java] Compiling permutation 5...
[java] Compile of permutations succeeded
[java] Linking into C:\Users\Hebron\Dropbox\IP\gwt-2.5.1\MyWebApp\war\mywebapp
[java] Link succeeded
[java] Compilation succeeded -- 60.848s
build:
BUILD SUCCESSFUL
Total time: 1 minute 5 seconds
看起来页面构建正确,所以当我打开 MyWebApp.html 文件时,它会毫无问题地加载静态内容。但是,文本框和提交按钮都不见了。当我运行ant devmode
文本框时,按钮出现并且没有任何问题,所以我只是想知道为什么它在“生产模式”下不起作用。
谢谢!