You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Brekke, Jeff" <Je...@qg.com> on 2002/08/08 22:35:01 UTC

RE: cvs commit: jakarta-commons-sandbox/net build.properties.samp le build.xml

FYI:

This build.xml is auto generated by maven.  It could get overwritten and
these changes lost.  Maven itself has proxy access.  The ant build and maven
also can run in "offline" mode.  Just a heads up.

=================================================================
Jeffrey D. Brekke                                   Quad/Graphics
Jeff.Brekke@qg.com                              http://www.qg.com


> -----Original Message-----
> From: jfclere@apache.org [mailto:jfclere@apache.org]
> Sent: Thursday, August 08, 2002 5:44 AM
> To: jakarta-commons-sandbox-cvs@apache.org
> Subject: cvs commit: jakarta-commons-sandbox/net 
> build.properties.sample
> build.xml
> 
> 
> jfclere     2002/08/08 03:43:31
> 
>   Modified:    net      build.xml
>   Added:       net      build.properties.sample
>   Log:
>   Allow the download via a proxy (It needs Ant-1.5).
>   
>   Revision  Changes    Path
>   1.8       +16 -3     jakarta-commons-sandbox/net/build.xml
>   
>   Index: build.xml
>   ===================================================================
>   RCS file: /home/cvs/jakarta-commons-sandbox/net/build.xml,v
>   retrieving revision 1.7
>   retrieving revision 1.8
>   diff -u -r1.7 -r1.8
>   --- build.xml	6 Aug 2002 18:39:09 -0000	1.7
>   +++ build.xml	8 Aug 2002 10:43:31 -0000	1.8
>   @@ -1,6 +1,8 @@
>    <?xml version="1.0" encoding="UTF-8"?>
>    
>    <project basedir="." name="commons-net" default="jar">
>   +
>   +  <property file="build.properties"/>
>      
>      <property name="defaulttargetdir" value="target"></property> 
>      <property name="classesdir" value="target/classes"></property>
>   @@ -15,6 +17,10 @@
>        <condition property="noget">
>          <equals arg2="only" arg1="${build.sysclasspath}"></equals>
>        </condition>
>   +
>   +    <condition property="useproxy">
>   +      <equals arg1="${proxy.use}" arg2="on" />
>   +    </condition>
>      </target>
>        
>      <target description="o Create the jar" name="jar" 
> depends="get-deps">
>   @@ -142,10 +148,17 @@
>     
>      </target>
>    
>   -  <target name="get-deps" depends="init" unless="noget">
>   +  <!-- Allow get to work with a proxy -->
>   +  <target name="setproxy"  if="useproxy" depends="init">
>   +    <taskdef name="setproxy"
>   +      
> classname="org.apache.tools.ant.taskdefs.optional.net.SetProxy" />
>   +    <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"/>
>   +  </target>
>   +
>   +  <target name="get-deps" depends="setproxy,init" unless="noget">
>      
>        <mkdir dir="lib"></mkdir>
>   -    
>   +
>        <get usetimestamp="true" ignoreerrors="true" 
> src="http://www.ibiblio.org/maven/oro/jars/oro-2.0.6.jar" 
> dest="lib/oro-2.0.6.jar"></get>
>        <get usetimestamp="true" ignoreerrors="true" 
> src="http://www.ibiblio.org/maven/junit/jars/junit-3.7.jar" 
> dest="lib/junit-3.7.jar"></get>
>      
>   @@ -171,4 +184,4 @@
>      </target>
>    
>    </project>
>   -    
>   \ No newline at end of file
>   +    
>   
>   
>   
>   1.1                  
> jakarta-commons-sandbox/net/build.properties.sample
>   
>   Index: build.properties.sample
>   ===================================================================
>   #Proxy to download needed elements.
>   #proxy.host=proxy.domain
>   #proxy.port=8080
>   #proxy.use=on
>   
>   
>   
> 
> --
> To unsubscribe, e-mail:   
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>