编译后GWT示例项目无法正常工作,未进行任何更改

时间:2013-05-01 17:38:23

标签: gwt ant

我正在关注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时,文本框和按钮出现并且没有任何问题,所以我只是想知道为什么它在“生产模式”下不起作用。

谢谢!

1 个答案:

答案 0 :(得分:0)

您必须从网络服务器提供您的应用。