Author: gscokart
Date: Mon Jul 30 11:34:55 2007
New Revision: 561085

URL: http://svn.apache.org/viewvc?view=rev&rev=561085
Log:
update go-ivy in order to work with maven repository

Modified:
    incubator/ivy/core/trunk/src/example/go-ivy/build.xml

Modified: incubator/ivy/core/trunk/src/example/go-ivy/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/ivy/core/trunk/src/example/go-ivy/build.xml?view=diff&rev=561085&r1=561084&r2=561085
==============================================================================
--- incubator/ivy/core/trunk/src/example/go-ivy/build.xml (original)
+++ incubator/ivy/core/trunk/src/example/go-ivy/build.xml Mon Jul 30 11:34:55 
2007
@@ -46,19 +46,21 @@
     <property name="src.dir" value="src" />
     
     
+    <target name="download-ivy" unless="skip.download">
+       <mkdir dir="${ivy.jar.dir}"/>
+               <!-- download Ivy from web site so that it can be used even 
without any special installation -->
+               <echo message="installing ivy..."/>
+       <get 
src="http://people.apache.org/~xavier/ivy/${ivy.install.version}/ivy.jar";
+                dest="${ivy.jar.file}" usetimestamp="true"/>
+    </target>
+    
     <!-- ================================= 
           target: install-ivy         
             this target is not necessary if you put ivy.jar in your ant lib 
directory
             if you already have ivy in your ant lib, you can simply remove this
             target and the dependency the 'go' target has on it
          ================================= -->
-    <target name="install-ivy" description="--> install ivy">
-       <mkdir dir="${ivy.jar.dir}"/>
-               <!-- download Ivy from web site so that it can be used even 
without any special installation -->
-               <echo message="installing ivy..."/>
-       <get 
src="http://people.apache.org/~xavier/ivy/${ivy.install.version}/ivy.jar";
-                dest="${ivy.jar.file}" usetimestamp="true"/>
-                
+    <target name="install-ivy" depends="download-ivy" description="--> install 
ivy">
        <!-- try to load ivy here from local ivy dir, in case the user has not 
already dropped
              it into ant's lib dir (note that the latter copy will always take 
precedence).
              We will not fail as long as local lib dir exists (it may be 
empty) and
@@ -79,7 +81,7 @@
                <echo message="using ivy to resolve commons-lang 2.1..."/>
         <!-- here comes the magic line: asks ivy to resolve a dependency on 
              commons-lang 2.1 and to build an ant path with it from its cache  
-->
-        <ivy:cachepath organisation="apache" module="commons-lang" 
revision="2.1" 
+        <ivy:cachepath organisation="commons-lang" module="commons-lang" 
revision="2.1" conf="default"
                        pathid="lib.path.id" inline="true"/>
         
                <echo message="compiling..."/>


Reply via email to