首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Ant编译之后,GWT DevMode无法工作。

在Ant编译之后,GWT DevMode无法工作。
EN

Stack Overflow用户
提问于 2011-02-07 15:59:50
回答 1查看 596关注 0票数 0

在为特定的ant compilation构建browser.If之后,我遇到了问题,我为所有带有ant的浏览器构建的browser.If都正常工作,但是如果我为特定的浏览器编译,GWT DevMode直到从war中删除所有文件才能工作。正如您所知道的,为所有浏览器构建ant需要很长时间的time.So,任务的交付能力非常低。下面是我的代码:对于OrphanWorkspace模块,我认为,我继承了所有必需的东西,以及<inherits name='com.allen_sauer.gwt.dnd.gwt-dnd'/>

代码语言:javascript
复制
   <?xml version="1.0" encoding="utf-8"?>

<project name="OrphanWorkspace" basedir=".">

 < import file="Base_build.xml"  />

<target name="OrphanWorkspace">
    <antcall target="MAIN">
        <param name="permutation" value="com.site.gwt.orphanworkspace.OrphanWorkspace"/>
    </antcall>
</target>
<target name="OrphanWorkspace_IE6">
    <antcall target="MAIN">
        <param name="permutation" value="com.site.gwt.orphanworkspace.OrphanWorkspace_IE6"/>
    </antcall>
</target>
<target name="OrphanWorkspace_SAFARI">
    <antcall target="MAIN">
        <param name="permutation" value="com.site.gwt.orphanworkspace.OrphanWorkspace_SAFARI"/>
    </antcall>
</target>

<target name="OrphanWorkspace_OPERA">
    <antcall target="MAIN">
        <param name="permutation" value="com.site.gwt.orphanworkspace.OrphanWorkspace_OPERA"/>
    </antcall>
</target>
<target name="OrphanWorkspace_FF3">
    <antcall target="MAIN">
        <param name="permutation" value="com.site.gwt.orphanworkspace.OrphanWorkspace_FF3"/>
    </antcall>
</target>

<target name="OrphanWorkspace_FF2">
    <antcall target="MAIN">
        <param name="permutation" value="com.site.gwt.orphanworkspace.OrphanWorkspace_FF2"/>
    </antcall>
</target>

Base_build.xml

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>

   <project name="Base" basedir=".">

    <property name="gwtc.lib" value="..\gwtclib"/>
    <property name="gwt.dir" value="..\war"/>
    <property name="gwtcopt" value=" -XdisableCastChecking  -XdisableClassMetadata"/>
    <property name="soyc" value="-soyc"/>
     <property name="extra" value="-extra out\extra"/>

<path id="gwt.compiler.classpath">
    <pathelement location="${basedir}/src"/>
    <pathelement location="${basedir}/../bmt/src"/>
    <fileset dir="${gwtc.lib}"/>
</path>

<target name="MAIN">
    <echo message="Compiling ${permutation} section"/>

    <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler"
          classpathref="gwt.compiler.classpath">
        <arg line="-logLevel INFO -localWorkers 2 -war ${gwt.dir} ${gwtcopt} ${permutation}"/>
        <jvmarg line="-Xmx1024M -Xss32M"/>
    </java>
</target>

最后我得到了这个错误

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-07-05 13:26:57

我会再次检查在调试模式下,您使用的是同一个.gwt.xml (也就是您指定user.agent的那个)和Ant构建的那个。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4923409

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档