gwt-dev-*.jar are things that ant should build for you, fairly early (but
after the build-tools directory).

Is there a reason you're setting the classpath and all those -lib flags to
ant?  It should just find them, using $GWT_TOOLS.

I suspect (but am not certain) the -lib's explain all of your "trying to
override old definition of task" messages.  I also think they're what's
causing your errors... do you have trunk/build/out and trunk/build/lib
directories, and do they have reasonable contents?  I think I see a few
class files being compiled, but I'm suspicious that the task redefinitions
caused the jar'ing to not to happen.

Also, which ant are you running?  1.7.0 has known issues (though not these
ones); 1.6.5 or 1.7.1 should both work fine.




On Wed, Jul 15, 2009 at 3:31 PM, mescalinum <[email protected]> wrote:

>
> I followed instructions I found somewhere to build gwt.
> I checked out tools and trunk, adjusted my CLASSPATH, GWT_TOOLS and
> GWT_VERSION env vars, and run ant dist-one
>
> $ cd ~/gwt
> $ ls
> tools  trunk
> $ export GWT_TOOLS=~/gwt/tools
> $ export GWT_VERSION=2.0.0-SNAPSHOT
> $ cd trunk
> $ CLASSPATH=.:$GWT_TOOLS/lib/tomcat/jsp-api-2.1.jar:$GWT_TOOLS/lib/
> tomcat/servlet-api-2.5.jar ant -lib $GWT_TOOLS/lib/apache -lib
> $GWT_TOOLS/lib/eclipse -lib $GWT_TOOLS/lib/w3c -lib $GWT_TOOLS/lib/w3c/
> sac -lib $GWT_TOOLS/lib/w3c/flute -lib $GWT_TOOLS/lib/jetty -lib
> $GWT_TOOLS/lib/javaswf -lib $GWT_TOOLS/lib/selenium -lib $GWT_TOOLS/
> lib/tomcat -lib $GWT_TOOLS/lib/objectweb -lib $GWT_TOOLS/lib/
> jfreechart -lib $GWT_TOOLS/lib/tonicsystems -lib $GWT_TOOLS/lib/junit -
> lib $GWT_TOOLS/lib/sun -lib $GWT_TOOLS/lib/sun/swingworker -lib
> $GWT_TOOLS/lib/xerces -lib $GWT_TOOLS/lib/xerces/xerces-2_9_1 dist-one
>
> Buildfile: build.xml
> Trying to override old definition of task for
>
> buildonly:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> dev-one:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> buildtools:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> build:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> ant-gwt:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> compile:
>    [mkdir] Created dir: /home/federico/gwt/trunk/build/out/build-
> tools/ant-gwt/bin
> [gwt.javac] Compiling 5 source files to /home/federico/gwt/trunk/build/
> out/build-tools/ant-gwt/bin
>
> build:
>    [mkdir] Created dir: /home/federico/gwt/trunk/build/lib
>      [jar] Building jar: /home/federico/gwt/trunk/build/lib/ant-
> gwt.jar
>
> customchecks:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> compile:
>    [mkdir] Created dir: /home/federico/gwt/trunk/build/out/build-
> tools/customchecks/bin
> [gwt.javac] Compiling 2 source files to /home/federico/gwt/trunk/build/
> out/build-tools/customchecks/bin
>
> build:
> [jar.bydate] Building jar: /home/federico/gwt/trunk/build/lib/gwt-
> customchecks.jar
>
> doctool:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> compile:
>    [mkdir] Created dir: /home/federico/gwt/trunk/build/out/build-
> tools/doctool/bin
> [gwt.javac] Compiling 13 source files to /home/federico/gwt/trunk/
> build/out/build-tools/doctool/bin
> [gwt.javac] Note: Some input files use unchecked or unsafe operations.
> [gwt.javac] Note: Recompile with -Xlint:unchecked for details.
>
> build:
> [jar.bydate] Building jar: /home/federico/gwt/trunk/build/lib/gwt-
> doctool.jar
>
> -do:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> core:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> build.alldeps.jar:
>    [mkdir] Created dir: /home/federico/gwt/trunk/build/out/dev/core
>
> build:
>    [mkdir] Created dir: /home/federico/gwt/trunk/build/out/dev/core/
> bin-dummy
> [gwt.javac] Compiling 1 source file to /home/federico/gwt/trunk/build/
> out/dev/core/bin-dummy
>    [mkdir] Created dir: /home/federico/gwt/trunk/build/out/dev/core/
> bin
> [gwt.javac] Compiling 5 source files to /home/federico/gwt/trunk/build/
> out/dev/core/bin
> [gwt.javac] Compiling 725 source files to /home/federico/gwt/trunk/
> build/out/dev/core/bin
> [gwt.javac] Note: Some input files use or override a deprecated API.
> [gwt.javac] Note: Recompile with -Xlint:deprecation for details.
> [gwt.javac] Note: Some input files use unchecked or unsafe operations.
> [gwt.javac] Note: Recompile with -Xlint:unchecked for details.
> [gwt.javac] Creating empty /home/federico/gwt/trunk/build/out/dev/core/
> bin/com/google/gwt/core/ext/soyc/package-info.class
>     [copy] Copying 1 file to /home/federico/gwt/trunk/build/out/dev/
> core/bin
>    [mkdir] Created dir: /home/federico/gwt/trunk/build/out/dev/core/
> sentinels
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> -filter.props:
>     [echo] Branding as GWT version 2.0.0-SNAPSHOT, SVN rev tr...@5738
>     [copy] Copying 1 file to /home/federico/gwt/trunk/build/out/dev/
> core/bin
>    [touch] Creating /home/federico/gwt/trunk/build/out/dev/core/
> sentinels/gwt-2.0.0-SNAPSHOT-svn-trunk-5738
>
> linux:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> compile:
>    [mkdir] Created dir: /home/federico/gwt/trunk/build/out/dev/linux/
> bin
> [gwt.javac] Compiling 11 source files to /home/federico/gwt/trunk/
> build/out/dev/linux/bin
>
> build:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> core:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> build.alldeps.jar:
>
> build:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> -filter.props:
>
> oophm:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> compile:
>    [mkdir] Created dir: /home/federico/gwt/trunk/build/out/dev/oophm/
> bin
> [gwt.javac] Compiling 21 source files to /home/federico/gwt/trunk/
> build/out/dev/oophm/bin
> [gwt.javac] Note: Some input files use or override a deprecated API.
> [gwt.javac] Note: Recompile with -Xlint:deprecation for details.
>
> build:
> [jar.bydate] Building jar: /home/federico/gwt/trunk/build/lib/gwt-dev-
> oophm.jar
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> user:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> dev-one:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> buildtools:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> build:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> ant-gwt:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> compile:
>
> build:
>
> customchecks:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> compile:
>
> build:
>
> doctool:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> compile:
>
> build:
>
> -do:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> core:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> build.alldeps.jar:
>
> build:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> -filter.props:
>
> linux:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> compile:
>
> build:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> core:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> build.alldeps.jar:
>
> build:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> -filter.props:
>
> oophm:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> compile:
>
> build:
> Trying to override old definition of task for
> Trying to override old definition of task for
>
> BUILD FAILED
> /home/federico/gwt/trunk/build.xml:38: The following error occurred
> while executing this line:
> /home/federico/gwt/trunk/build.xml:26: The following error occurred
> while executing this line:
> /home/federico/gwt/trunk/build.xml:68: The following error occurred
> while executing this line:
> /home/federico/gwt/trunk/user/build.xml:48: The following error
> occurred while executing this line:
> /home/federico/gwt/trunk/common.ant.xml:302: Cannot find dependency /
> home/federico/gwt/trunk/build/lib/gwt-dev-linux.jar
>
>
>
>
>
>
>
> how is that it doesn't find the jar?
> it requires gwt-dev-linux.jar to build? or it assumes at some point
> (erroneously) that the jar file has been built?
>
> anyone can help?
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to