Hi,

After having some problems with the "ant download" task. I have thought of 2 ways to improve it.

1 - Use a mirror via a modified mirrors.cgi.
For example use:
"http://www.apache.org/dyn/NEW_closer.cgi/jakarta/struts/binaries/jakarta-struts-1.1.tar.gz";
Instead of:
"http://www.apache.org/dist/jakarta/struts/binaries/jakarta-struts-1.1.tar.gz";

2 - Use the archive to make sure we will be able to rebuild old releases.
For example:
"http://archive.apache.org/dist/jakarta/struts/binaries/jakarta-struts-1.1.tar.gz";

The first way needs a modified mirrors.cgi, therefore I have ask Joshua if it was possible to do it technicaly. The answer is yes :-) but that rises questions that need answers.

Comments?

Cheers

Jean-Frederic
--- Begin Message ---
On Fri, 3 Oct 2003 [EMAIL PROTECTED] wrote:

> Hi Joshua,
>
> I would like to know if there is a way to mirrors.cgi to get a redirect instead
> a web page.
> In Tomcat we have a "ant download" task that downloads via http the jar file or
> tarball need for subcomponents, unfortunatly we get a web page instead of the
> except file. Would it be possible to have redirect instead the web page?

I don't understand the requirement.  Can you give me a specific example of
how you want things to work?  Can you show me how it works currently?

I'm guessing you mean that you want a URL that you can feed to ant that
will return a redirect to a mirrored location for a file.  This shouldn't
be technically difficult.  But I do see a couple little problems with
that:

1. What if the mirror doesn't work (isn't updated, is broken, whatever)?
What kind of fall-back would the downloader have?  Currently, they can use
the html page to choose another mirror.

2. We want to make it clear to downloaders that they are downloading from
mirrors and not from apache.org.  This is because it is the
responsibility of the downloader to confirm the authenticity of the file.
We do not check in any way that the mirrors are really delivering the file
that they say they are.  With the web-page system, they clearly see the
URL that they are downloading from, while with a redirect it would be
hidden.

Neither of these problems are insurmountable.  But before any such change
was made, you'd need to be sure that both your PMC and the infrastructure
group are aware of these issues.

Feel free to forward this email to start the discussion.

Joshua.




--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to