[kaffe] Getting ant-1.6.0 to build and work: progress report
Dalibor Topic
robilad@kaffe.org
Wed Jan 7 12:34:02 2004
This is a multi-part message in MIME format.
--------------030000090100090405060308
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hi all,
I've been trying to update kaffe's kaffe-extra directory to latest kaffe
and ant, and faced some compiler problems, that were fixed by Guilhem.
I've attached a patch against ant-1.6.0, needed to bootstrap ant-1.6.0
with latest kaffe from CVS. It still doesn't build though, see the build
log below.
Patches, ideas etc. welcome, as usual.
cheeers,
dalibor topic
bash-2.05a$ build.sh -Dbuild.compiler=kjc
... Bootstrapping Ant Distribution
... Compiling Ant Classes
... Copying Required Files
... Building Ant Distribution
Buildfile: build.xml
bootstrap:
prepare:
check_for_optional_packages:
build:
Created dir:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib
Compiling 216 source files to
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/classes
Copying 1 file to
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/classes
Copying 2 files to
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/classes
Copying 2 files to
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/classes/org/apache/tools/ant/taskdefs/optional/junit/xsl
jars:
Copying 4 files to
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build
Copying 1 file to
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-launcher.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-bootstrap.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-nodeps.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-trax.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-xalan1.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-xalan1.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-xalan2.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-xalan2.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-xslp.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-xslp.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-apache-resolver.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-apache-resolver.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-junit.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jakarta-regexp.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jakarta-regexp.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jakarta-oro.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jakarta-oro.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jakarta-bcel.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jakarta-bcel.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jakarta-log4j.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jakarta-log4j.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-commons-logging.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-commons-logging.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-apache-bsf.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-apache-bsf.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-stylebook.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-stylebook.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-javamail.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-javamail.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-icontract.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-icontract.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-netrexx.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-netrexx.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-commons-net.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-commons-net.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-starteam.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-starteam.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-vaj.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-vaj.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-antlr.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jmf.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jai.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jai.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-swing.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-swing.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jsch.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jsch.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jdepend.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-jdepend.jar
Building MANIFEST-only jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-weblogic.jar
Building jar:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/build/lib/ant-weblogic.jar
dist-lite:
Created dir:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/bootstrap
Created dir:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/bootstrap/bin
Created dir:
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/bootstrap/lib
Copying 29 files to
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/bootstrap/lib
Copying 2 files to
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/bootstrap/lib
Copying 13 files to
/tmp/topic/kaffe-extras/build/apache-ant-1.6.0.patched/bootstrap/bin
BUILD SUCCESSFUL
Total time: 1 minute 47 seconds
... Cleaning Up Build Directories
... Done Bootstrapping Ant Distribution
Unable to locate tools.jar. Expected to find it in
/tmp/topic/current-jthreads-jit3//lib/tools.jar
java.lang.ClassCastException: can't cast `org/apache/tools/ant/Main'
(java/net/URLClassLoader@0x833410c) to
`org/apache/tools/ant/launch/AntMain' (kaffe/lang/AppClassLoader@0x821bcec)
at org.apache.tools.ant.launch.Launcher.run (Launcher.java:214)
at org.apache.tools.ant.launch.Launcher.main (Launcher.java:90)
--------------030000090100090405060308
Content-Type: text/plain;
name="kaffe.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="kaffe.diff"
Only in apache-ant-1.6.0.patched/: bootstrap
diff -u apache-ant-1.6.0/bootstrap.sh apache-ant-1.6.0.patched/bootstrap.sh
--- apache-ant-1.6.0/bootstrap.sh Thu Dec 18 21:16:06 2003
+++ apache-ant-1.6.0.patched/bootstrap.sh Wed Jan 7 21:11:55 2004
@@ -121,7 +121,107 @@
${TOOLS}/ant/types/*.java \
${TOOLS}/ant/*.java ${TOOLS}/ant/taskdefs/*.java \
${TOOLS}/ant/taskdefs/compilers/*.java \
- ${TOOLS}/ant/taskdefs/condition/*.java
+ ${TOOLS}/ant/taskdefs/condition/*.java \
+ ${TOOLS}/ant/filters/util/ChainReaderHelper.java \
+ ${TOOLS}/ant/filters/BaseFilterReader.java \
+ ${TOOLS}/ant/filters/ChainableReader.java \
+ ${TOOLS}/ant/launch/Locator.java \
+ ${TOOLS}/ant/util/ResourceUtils.java \
+ ${TOOLS}/ant/util/JavaEnvUtils.java \
+ ${TOOLS}/ant/util/FileNameMapper.java \
+ ${TOOLS}/ant/util/MergingMapper.java \
+ ${TOOLS}/ant/util/IdentityMapper.java \
+ ${TOOLS}/ant/util/GlobPatternMapper.java \
+ ${TOOLS}/ant/util/SourceFileScanner.java \
+ ${TOOLS}/ant/taskdefs/email/EmailTask.java \
+ ${TOOLS}/ant/util/facade/ImplementationSpecificArgument.java \
+ ${TOOLS}/ant/util/facade/FacadeTaskHelper.java \
+ ${TOOLS}/ant/taskdefs/rmic/RmicAdapterFactory.java \
+ ${TOOLS}/ant/taskdefs/rmic/RmicAdapter.java \
+ ${TOOLS}/ant/util/StringUtils.java \
+ ${TOOLS}/ant/util/TeeOutputStream.java \
+ ${TOOLS}/ant/util/LazyFileOutputStream.java \
+ ${TOOLS}/ant/types/selectors/SelectorContainer.java \
+ ${TOOLS}/ant/types/selectors/modifiedselector/ModifiedSelector.java \
+ ${TOOLS}/ant/types/selectors/BaseExtendSelector.java \
+ ${TOOLS}/ant/util/JAXPUtils.java \
+ ${TOOLS}/ant/types/selectors/BaseSelectorContainer.java \
+ ${TOOLS}/ant/helper/AntXMLContext.java \
+ ${TOOLS}/ant/helper/ProjectHelperImpl.java \
+ ${TOOLS}/ant/types/selectors/BaseSelector.java \
+ ${TOOLS}/ant/types/selectors/ExtendFileSelector.java \
+ ${TOOLS}/ant/types/selectors/FileSelector.java \
+ ${TOOLS}/ant/types/selectors/TypeSelector.java \
+ ${TOOLS}/ant/types/selectors/SizeSelector.java \
+ ${TOOLS}/ant/types/selectors/SelectSelector.java \
+ ${TOOLS}/ant/types/selectors/PresentSelector.java \
+ ${TOOLS}/ant/types/selectors/MappingSelector.java \
+ ${TOOLS}/ant/types/selectors/OrSelector.java \
+ ${TOOLS}/ant/types/selectors/NotSelector.java \
+ ${TOOLS}/ant/types/selectors/NoneSelector.java \
+ ${TOOLS}/ant/types/selectors/MajoritySelector.java \
+ ${TOOLS}/ant/types/selectors/FilenameSelector.java \
+ ${TOOLS}/ant/types/selectors/ExtendSelector.java \
+ ${TOOLS}/ant/types/selectors/DifferentSelector.java \
+ ${TOOLS}/ant/types/selectors/DepthSelector.java \
+ ${TOOLS}/ant/types/selectors/DependSelector.java \
+ ${TOOLS}/ant/types/selectors/DateSelector.java \
+ ${TOOLS}/ant/types/selectors/ContainsSelector.java \
+ ${TOOLS}/ant/types/selectors/ContainsRegexpSelector.java \
+ ${TOOLS}/ant/util/regexp/Regexp.java \
+ ${TOOLS}/ant/types/selectors/AndSelector.java \
+ ${TOOLS}/ant/util/CollectionUtils.java \
+ ${TOOLS}/ant/input/MultipleChoiceInputRequest.java \
+ ${TOOLS}/ant/input/InputRequest.java \
+ ${TOOLS}/ant/types/selectors/SelectorUtils.java \
+ ${TOOLS}/ant/util/TimeoutObserver.java \
+ ${TOOLS}/mail/SmtpResponseReader.java \
+ ${TOOLS}/mail/ErrorInQuitException.java \
+ ${TOOLS}/ant/types/selectors/modifiedselector/EqualComparator.java \
+ ${TOOLS}/ant/types/selectors/modifiedselector/DigestAlgorithm.java \
+ ${TOOLS}/ant/types/selectors/modifiedselector/PropertiesfileCache.java \
+ ${TOOLS}/ant/taskdefs/email/Message.java \
+ ${TOOLS}/ant/taskdefs/email/Mailer.java \
+ ${TOOLS}/ant/taskdefs/email/PlainMailer.java \
+ ${TOOLS}/ant/taskdefs/rmic/SunRmic.java \
+ ${TOOLS}/ant/taskdefs/rmic/WLRmic.java \
+ ${TOOLS}/ant/taskdefs/rmic/KaffeRmic.java \
+ ${TOOLS}/ant/taskdefs/rmic/DefaultRmicAdapter.java \
+ ${TOOLS}/mail/MailMessage.java \
+ ${TOOLS}/ant/types/selectors/modifiedselector/Algorithm.java \
+ ${TOOLS}/ant/types/selectors/modifiedselector/Cache.java \
+ ${TOOLS}/ant/util/Watchdog.java \
+ ${TOOLS}/ant/util/ClasspathUtils.java \
+ ${TOOLS}/ant/filters/ClassConstants.java \
+ ${TOOLS}/ant/filters/EscapeUnicode.java \
+ ${TOOLS}/ant/filters/ExpandProperties.java \
+ ${TOOLS}/ant/filters/HeadFilter.java \
+ ${TOOLS}/ant/filters/LineContains.java \
+ ${TOOLS}/ant/filters/LineContainsRegExp.java \
+ ${TOOLS}/ant/filters/PrefixLines.java \
+ ${TOOLS}/ant/filters/ReplaceTokens.java \
+ ${TOOLS}/ant/filters/StripJavaComments.java \
+ ${TOOLS}/ant/filters/StripLineBreaks.java \
+ ${TOOLS}/ant/filters/StripLineComments.java \
+ ${TOOLS}/ant/filters/TabsToSpaces.java \
+ ${TOOLS}/ant/filters/BaseParamFilterReader.java \
+ ${TOOLS}/ant/filters/TailFilter.java \
+ ${TOOLS}/ant/util/Tokenizer.java \
+ ${TOOLS}/ant/util/LineTokenizer.java \
+ ${TOOLS}/ant/filters/TokenFilter.java \
+ ${TOOLS}/ant/util/regexp/RegexpFactory.java \
+ ${TOOLS}/ant/util/DateUtils.java \
+ ${TOOLS}/ant/types/selectors/SelectorScanner.java \
+ ${TOOLS}/ant/launch/AntMain.java \
+ ${TOOLS}/ant/util/LoaderUtils.java \
+ ${TOOLS}/ant/util/KeepAliveInputStream.java \
+ ${TOOLS}/ant/input/DefaultInputHandler.java \
+ ${TOOLS}/ant/taskdefs/email/EmailAddress.java \
+ ${TOOLS}/ant/input/InputHandler.java \
+ ${TOOLS}/ant/util/DOMElementWriter.java \
+ ${TOOLS}/ant/util/FlatFileNameMapper.java \
+ ${TOOLS}/ant/helper/ProjectHelper2.java \
+ ${TOOLS}/ant/util/FileUtils.java
ret=$?
if [ $ret != 0 ]; then
echo ... Failed compiling Ant classes !
Only in apache-ant-1.6.0.patched/: build
diff -u apache-ant-1.6.0/build.sh apache-ant-1.6.0.patched/build.sh
--- apache-ant-1.6.0/build.sh Thu Dec 18 21:16:06 2003
+++ apache-ant-1.6.0.patched/build.sh Wed Jan 7 21:20:02 2004
@@ -24,7 +24,7 @@
export ANT_HOME
if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
- /bin/sh ./bootstrap.sh
+ /bin/sh ./bootstrap.sh $*
fi
if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/bin/antRun ; then
Common subdirectories: apache-ant-1.6.0/docs and apache-ant-1.6.0.patched/docs
Common subdirectories: apache-ant-1.6.0/lib and apache-ant-1.6.0.patched/lib
Common subdirectories: apache-ant-1.6.0/src and apache-ant-1.6.0.patched/src
--------------030000090100090405060308--