You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Erik Hatcher <ja...@ehatchersolutions.com> on 2002/05/24 23:46:14 UTC

Re: XMLCatalog.java -- patch breaks bootstrap.bat Yikes!

Yikes!  I was concerned about that when I saw the additional imports, but
because I have Xalan in my bootstrap classpath it worked I guess.

I +1'd including Xalan as its such a fundamental piece to things like
<junitreport> and <xslt> - but I think at least one committer veto'd it?  I
still support including it.

So, we must make a decsion soon... either we revert Craeg's patch or we
include Xalan.

    Erik


----- Original Message -----
From: "Craeg Strong" <cs...@arielpartners.com>
To: "Ant Developers List" <an...@jakarta.apache.org>;
<ja...@ehatchersolutions.com>
Sent: Friday, May 24, 2002 7:30 PM
Subject: Re: XMLCatalog.java -- patch breaks bootstrap.bat Yikes!


> Hello:
>
> Responses to previous email are down below, but a bigger issue has come
> up.
>
> I never realized until this very moment that the xmlParserAPIs.jar that
> comes with
> Xerces does __NOT__ contain the full JAXP library.  Instead, they
> chopped it in half
> and only included the pieces that are actually implemented by xerces.
> This is bad.
>
> XMLCatalog as I have now modified it makes use of the OTHER pieces of
> the JAXP library,
> although it does NOT require actual implementations of the Transformer
> classes
> (that is, neither Xalan nor Saxon have to be on the path).
>
> The problem is, bootstrap.bat / boostrap.sh FAIL to build Ant now
> because of the missing
> APIs.   >:-(
>
> What is the best way to fix this?    I remember there was some
> discussion about including
> the xalan jar files in Ant/lib:    xalan.jar and xml-api.jar
>
> Of course, the Xalan xml-api.jar includes the ENTIRE jaxp library, so
> there would be
> considerable overlap with xerces  xmlParserAPIs.jar
>
> Another alternative is to include  jaxp.jar  from JAXP 1.1   At only 28K,
> it does not add much to the size of the ant download.
>
> Again, however, there would be some overlap with the xerces
> xmlParserAPIs.jar
>
> Anyway, it seems pretty reasonable to me that Ant would include a
> jaxp.jar library,
> as it is intrinsically dependent on much of JAXP.   Otherwise, we would
> have to do something
> horribly ugly like breaking up XMLCatalog into two pieces.  yuk.
>
> Thoughts?
>
> --Craeg
>
>
> Erik Hatcher wrote:
>
> >Craeg,
> >
> >Ok, I've applied your fix-up patch.
> >
> Thanks!
>
> >
> >
> >
> >>I am guessing you are using the following:
> >>
> >>Windows 2000
> >>Apache Xerces 2.0.1 (the one that comes bundled with Ant)
> >>Apache Xalan 2.3.1
> >>
> >>Please let me know as soon as possible.   I noted in your comments, the
> >>
> >>
> >assert
> >
> >
> >>failures were all of the nature
> >>
> >>Expected    "file:/C:/ant1.5Beta/jakarta-ant/src.../doc.dtd"
> >>But Was:    "file:C:/ant1.5Beta/jakarta-ant/src.../doc.dtd"
> >>
> >>That is, the URL was being formed improperly-- missing the slash after
> >>
> >>
> >"file:"
> >
> >Win2k, Xerces from Ant installation, and an unknown version of Xalan
(I've
> >been swapping different versions around on it).
> >
> >    Erik
> >
> I will try with the latest 2.3.1
>
>  Saxon also has a bug in forming URIs  in versions 6.5.0 - 6.5.2, and
> the next version
> 6.5.3 is going to have a fix.   In any event, I will put together a
> testing matrix of good and bad versions of
> various parsers, and maybe we can add it to the docs.  Even for the
> "bad" versions, there are workarounds.
>
> Regards,
>
> --Craeg
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


[PATCH] XMLCatalogTest.java

Posted by Craeg K Strong <cs...@arielpartners.com>.
Hello:

Attached please find a patch that fixes the failing assertions you
found in XMLCatalogTest.java

What happened: Ant has its own toURL() routine called FileUtils:getFileURL(File)

The algorithm used yields slightly different results than that of 
java.io.File.toURL()

but only on Windoze.

Although the URLs are different, both seem to work.  Anyway, I just changed the
code to use FileUtils.getFileURL instead of java.io.File.toURL

Of course, I am submitting this on the optimistic assumption that the 
aforementioned JAXP jar issue will be resolved :-)

Thanks,

--Craeg