ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <>
Subject Re: [PATCH] Copy task recognizes URLs as file attributes
Date Wed, 28 Nov 2001 11:34:12 GMT
From: "Peter Donald" <>

> On Wed, 28 Nov 2001 10:15, Steve Loughran wrote:
> > oh, one more thing I remembered, but committing the http tasks into the
> > sandbox has just reminded me: the implementation of http is
> > woefully inadequate and blissfully different from version to version.
> >
> Yep. Using native URL objects is for all intents and purposese out of the 
> picture because it is a really really really really really really brittle 
> system. Oh - did I mention it sucks ? ;)

Let me just mention that using URL objects, does not mean we need to use the 
connection infrastructure provided in the JDK. We could use our own for that,
either by installing our own factories or by using URL as a just a static descriptor
and having our own code read from there.

Doesn't HTTPClient already provides a factory that can be use to replace the one 
used by URL?

To me the whole point URL is that it provide the url parsing from a string
all just done. So we can do:

    void setUrl(URL url) {

and introspection will do all the work for us. Whether we use url.openStream() or
we pass this object to our own code, it is up to us.

Jose Alberto

Jose Alberto

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message