2011-02-07 78 views
0

对于特定的浏览器,我在ant compilation之后遇到了问题。如果我为所有浏览器使用ant构建一切正常,但是如果我为特定浏览器编译GWT DevMode直到删除所有文件从war。正如你所知,所有浏览器的蚂蚁构建都需要很长时间。因此,任务的可传递性非常低。 这是我的代码:对于OrphanWorkspace模块,我认为,我继承了所有必需的东西,并且<inherits name='com.allen_sauer.gwt.dnd.gwt-dnd'/>也是如此。GWT DevMode在Ant编译后不工作

<?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

<?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> 

最后我得到这个错误

enter image description here

回答

0

我会仔细检查,在调试模式下,您使用的是相同的.gwt.xml文件(即,您指定user.agent的那个)作为Ant构建的那个。