I ran into the same problems you mentioned above when using Ant 1.8.0
RC1.
Try Ant 1.7.1 (http://archive.apache.org/dist/ant/binaries/)
Switching to Ant 1.7.1 cleared up my build problems.
On Jan 31, 8:11 pm, Karan Bhatnagar <karan.bhatna...@gmail.com> wrote:
> Hi,
> I am an ant newbie. I am trying to build GWT from source following steps as
> mentioned athttp://code.google.com/webtoolkit/makinggwtbetter.html
> I am facing problem doing that and could not get solution in ant forums.
> <http://code.google.com/webtoolkit/makinggwtbetter.html>
> Now when I invoke ant from trunk directory, it first says that a file is
> duplicate.
> BUILD FAILED
> /home/karan/work/gwt/trunk/build.xml:91: The following error occurred while
> executing this line:
> /home/karan/work/gwt/trunk/build.xml:27: The following error occurred while
> executing this line:
> /home/karan/work/gwt/trunk/build.xml:54: The following error occurred while
> executing this line:
> /home/karan/work/gwt/trunk/dev/build.xml:107: The following error occurred
> while executing this line:
> /home/karanb/work/gwt/trunk/common.ant.xml:148: Duplicate file
> org/apache/COPYING was found and the duplicate attribute is 'fail'.
>
> When I re invoke ant without ant clean, it fails to find classes in tools
> directory, for example it says:
> compile:
> [gwt.javac] /home/karan/work/gwt/trunk/dev/build.xml:199: warning:
> 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
> to false for repeatable builds
> [gwt.javac] Compiling 138 source files to
> /home/karan/work/gwt/trunk/build/out/dev/bin
> [gwt.javac]
> /home/karanb/work/gwt/trunk/dev/core/src/com/google/gwt/dev/ServletValidato r.java:21:
> package org.mortbay.jetty.servlet does not exist
> [gwt.javac] import org.mortbay.jetty.servlet.ServletHandler;
> {Many such errors}
>
> I reinvoke ant, specifying -lib /home/karan/work/gwt/tools/lib/jetty, then
> jetty package issue is resolved, but rest packages continue giving errors.
> [gwt.javac] /home/karan/work/gwt/trunk/dev/build.xml:199: warning:
> 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
> to false for repeatable builds
> [gwt.javac] Compiling 138 source files to
> /home/karan/work/gwt/trunk/build/out/dev/bin
> [gwt.javac]
> /home/karan/work/gwt/trunk/dev/core/src/com/google/gwt/dev/shell/CompilingC lassLoader.java:47:
I am an ant committer. I was worried that you might have found an
issue with ant 1.8.0. I have just built gwt from source on a mac using
ant 1.8.0. There were no errors. This issue might have been fixed
between ant 1.8.0RC1 and ant 1.8.0.
Regards,
Antoine