Karan, 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: > package org.apache.commons.collections.map does not exist > [gwt.javac] import org.apache.commons.collections.map.AbstractReferenceMap; > > Why do I have to manually give lib path, why can't ant get it by itself as > the guide makinggwtbetter says. I am also mentioning system info below for > any hints: > Ant is in home/karan/Downloads/ > ka...@karanb:~/Downloads/apache-ant-1.8.0RC1$ ls > INSTALL KEYS LICENSE NOTICE README WHATSNEW bin docs etc fetch.xml > get-m2.xml lib > > ant is installed properly as I see: > ka...@karan:~/work/gwt/trunk$ ant -version > Apache Ant version 1.8.0RC1 compiled on January 5 2010 > > The environment variables are set as : > GWT_TOOLS=/home/karan/work/gwt/tools > ANT_HOME=/home/karan/Downloads/apache-ant-1.8.0RC1 > > The directory /home/karan/work/gwt contains tools and trunk subdirectories. > > ka...@karan:~/work/gwt/tools$ ls > antlib lib redist sdk > > ka...@karan:~/work/gwt/trunk$ ls > build-tools build.xml common.ant.xml dev dev-ext distro-source doc > eclipse jni platforms.ant.xml plugins reference samples servlet > tools user > > Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.