Index: build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-2/build.xml,v
retrieving revision 1.8
diff -u -r1.8 build.xml
--- build.xml	13 Feb 2002 05:01:22 -0000	1.8
+++ build.xml	18 Feb 2002 17:48:33 -0000
@@ -48,28 +48,35 @@
   </path>
 
   <target
-    name="update-jars">
-    
+    name="update-jars" 
+    description="Update the jars from jakarta site" 
+    depends="update-jars-proxy,update-jars-noproxy">
+  </target>
+
+  <target name="prepare.httpget">    
     <taskdef 
       name="httpget" 
       className="org.apache.tdk.task.Get">
       <classpath refid="update.classpath"/>
     </taskdef>
-    
-    <!-- If you need proxy support you'll have to manually add:
-    
-         proxyHost="x"
-         proxyPort="y"
-       
-         We'll clean this up but it worked for a user behind a proxy.
-    -->
-    
+  </target>
+
+  <target name="update-jars-noproxy" unless="proxy.host" depends="prepare.httpget">
     <httpget
       baseUrl="http://jakarta.apache.org/turbine/jars/"
       dest="${lib.repo}"
       dependencyFile="deps.list"
     />
+  </target>    
 
+  <target name="update-jars-proxy" if="proxy.host" depends="prepare.httpget">
+    <httpget
+      baseUrl="http://jakarta.apache.org/turbine/jars/"
+      dest="${lib.repo}"
+      dependencyFile="deps.list"
+      proxyHost="${proxy.host}"
+      proxyPort="${proxy.port}"
+    />
   </target>    
 
     <!-- ================================================================== -->

