All

When I compile my GWT project in eclipse it compiles. When I use the
command line with the ant build scripts I get a generic error

ant command line error

ant build script.


        <!-- builds a GWT web project -->
        <target name="dist_gwt" depends="clean, init, resolve, gwtc"
description="builds a GWT project">
                <copy todir="war/WEB-INF/classes">
                        <fileset dir="${src.dir}" includes="**/*.java"/>
                </copy>
                <zip destfile="${dist.dir}/${ant.project.name}-${version}.war"
basedir="war"/>
        </target>

        <target name="javac_gwt" depends="" description="Compile GWT java
source">

                <copy todir="war/WEB-INF/lib" file="${gwt.sdk.location}/gwt-
servlet.jar" />

                <javac srcdir="${src.dir}" includes="**" encoding="utf-8"
destdir="war/WEB-INF/classes"
                   source="1.6" target="1.6" nowarn="true"
                   debug="true" debuglevel="lines,vars,source">
                        <classpath refid="lib.path.id"/>
                </javac>

        </target>

        <target name="gwtc" depends="" description="GWT compile to
JavaScript">

                <java failonerror="true" fork="true"
classname="com.google.gwt.dev.Compiler">
                        <classpath>
                                <pathelement location="${src.dir}"/>
                                <path refid="lib.path.id"/>
                        </classpath>
                        <!-- add jvmarg -Xss16M or similar if you see a 
StackOverflowError
-->
                        <jvmarg value="-Xmx256M"/>
                        <!-- Additional arguments like -style PRETTY or 
-logLevel DEBUG -->
                        <!--<arg value="-XdisableClassMetadata"/>
                                <arg value="-XdisableCastChecking"/>-->
                        <arg value="-style"/>
                        <arg value="PRETTY"/>
                        <arg value="${gwt.project.main}"/>
                </java>

        </target>

Now If I don't call the javac_gwt target the project will compile. It
only errors when I make the call to javac_gwt


Error

HandlerManager.java:192: type parameters of <H>H cannot be determined;
no unique maximal instance exists for type variable H with upper
bounds
H,com.test.web.clearing.client.event.downloader.GwtDownloadEventHander<?
extends com.test.web.clearing.shared.event.GwtDownloadEvent>
    [javac]     return registry.getHandler(classType, index);
    [javac]                               ^
    [javac] 1 error

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to