ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gautam Guliani <gaut...@grassroots-tech.com>
Subject [PATCH] Java2 style auth for Get.java
Date Tue, 04 Sep 2001 18:55:51 GMT

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

--
Gautam
Mime
View raw message