ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Cohen" <SCo...@sportvision.com>
Subject RE: can't build ant 1.6
Date Mon, 01 Sep 2003 17:14:29 GMT
I've received no replies to this, so let me try again with a little more information.  Previous
versions of build.sh (or build.bat)  contained this sequence:

LOCALCLASSPATH=lib/xercesImpl.jar:lib/xml-apis.jar:bootstrap/lib/ant.jar
# add in the dependency .jar files
DIRLIBS=lib/optional/*.jar
for i in ${DIRLIBS}
do
    if [ "$i" != "${DIRLIBS}" ] ; then
        LOCALCLASSPATH=$LOCALCLASSPATH:"$i"
    fi
done

In the current version, it is like this:

LOCALCLASSPATH=
# add in the dependency .jar files
DIRLIBS=lib/optional/*.jar
for i in ${DIRLIBS}
do
    if [ "$i" != "${DIRLIBS}" ] ; then
        LOCALCLASSPATH=$LOCALCLASSPATH:"$i"
    fi
done

The difference is that LOCALCLASSPATH is no longer being preset with xercesImpl.jar and xml-apis.jar
before the optional directory is scanned.
The absence of these jars from the classpath was what led to the failures below.  Getting
them onto the classpath solved the problem.  

But is this a bug?  Or is it an undocumented requirement that ant be built in an environment
that has these or other such jars on the classpath?  Or is it a documented requirement and
I've just been unable to find the documentation?

-----Original Message-----
From:	Steve Cohen
Sent:	Sat 8/30/2003 5:09 PM
To:	ant-dev@jakarta.apache.org
Cc:	
Subject:	can't build.
This is my first attempt to build ant in awhile.

I downloaded a completely fresh source tree from cvs, made a couple of extremely minor changes,
and then tried to build with build.sh.  The bootstrap build successfully completes, but then
when the main build starts, I get this:

[scohen@sleepingbear ~/ant]$ ./build.sh -Ddist.dir=dist dist
ANT_HOME=bootstrap
Buildfile: build.xml

BUILD FAILED
XML parser factory has not been configured correctly: java.lang.ClassNotFoundException: org.apache.xerces.jaxp.SAXParserFactoryImpl

I don't understand this.

My ant/lib directory contains (from the download)

     927669   8-01-2003   1:45a -rw-rw-r--  /home/scohen/ant/lib/xercesImpl.jar
     108484   6-01-2002   7:26a -rw-rw-r--  /home/scohen/ant/lib/xml-apis.jar

What am I missing?  I've never needed anything else to build ant.  Has something changed in
the build procedure?




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message