ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-frederic clere <jfrederic.cl...@fujitsu-siemens.com>
Subject Re: Using proxy with <get>
Date Mon, 06 May 2002 11:03:29 GMT
Steve Loughran wrote:
> ----- Original Message -----
> From: "Steve Loughran" <steve_l@iseran.com>
> To: "Ant Developers List" <ant-dev@jakarta.apache.org>;
> <jfrederic.clere@fujitsu-siemens.com>
> Sent: Friday, May 03, 2002 10:16 AM
> Subject: Re: Using proxy with <get>
> 
> 
>>----- Original Message -----
>>From: "jean-frederic clere" <jfrederic.clere@fujitsu-siemens.com>
>>To: "Ant-Dev" <ant-dev@jakarta.apache.org>
>>Sent: Friday, May 03, 2002 9:27 AM
>>Subject: Using proxy with <get>
>>
>>
>>>Hi,
>>>
>>>I am trying to use <get> to download from the internet but I need to
>>
>>specify a
>>
>>>proxy.
>>>Is this possible?
>>
>><setproxy> is in ant1.5 for this very purpose
>>
> 
> 
> except of course while the code is in there, it aint in the
> defaults.properties. oops.
> 
> you need to add it yourself
> <tasdef name="setproxy"
> classname="org.apache.tools.ant.taskdefs.optional.net.SetProxy" />

Great! I have done:
+++
$ cvs diff build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/mirror/jakarta-tomcat-4.0/build.xml,v
retrieving revision 1.66
diff -u -r1.66 build.xml
--- build.xml   25 Apr 2002 14:50:10 -0000      1.66
+++ build.xml   6 May 2002 11:00:02 -0000
@@ -443,5 +443,12 @@
      <delete file="${tomcat.dist}/${jtc.final-src.name}.tar" />
    </target>

+  <target name="download">
+    <!-- Downdown any sub package or tools needed. -->
+     <taskdef name="setproxy"
+      classname="org.apache.tools.ant.taskdefs.optional.net.SetProxy" />
+     <setproxy proxyhost="deejai2" proxyport="81"/>
+     <get src="http://jakarta.apache.org/builds/jakarta-commons/release/commons
-logging/v1.0/commons-logging-1.0.tar.gz" dest="${user.home}/commons-logging-1.0
.tar.gz" />
+  </target>
+++

(Proxy is deejai2:81).

> 
> pending beta2
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
> 
> 
> 




--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message