ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: [PATCH] Java2 style auth for Get.java
Date Thu, 06 Sep 2001 03:08:55 GMT
On Wed, 5 Sep 2001 04:55, Gautam Guliani wrote:
> Hello,
> 	Attached is a patch to enable Http Basic Auth for the Get task.
> Example usage:
> (in your build.xml)
>
>      <get src="http://some/protected/url/document.html"
>        username="joeblow" password="supersecret" dest="document_local.html"
> />
>
> Only Java 2 is supported (using JDK 1.2's Authenticator mechanism). If
> there is a huge demand for 1.1 style auth (which I didn't think there would
> be), I can add it.
>
>
> It's been tested against latest copy of ant (downloaded from CVS today) on
> Win 2k
> with java versions 1.2.2_008 and 1.3


Hi could you rework this to us reflection to get Authenticator. The reason is 
that this task has to compile and run in a 1.1 environment. So if you are in 
1.1 you should just ignore username/password otherwise use it. Thoughts?

-- 
Cheers,

Pete

------------------------------------------------
 "No. Try not. Do. Or do not. There is no try." 
                                     -- Yoda 
------------------------------------------------


Mime
View raw message