GRAILS-1019: Allowing expressions to be used with the 'disabled' attribute for g...
[grails.git] / ant / build / resolve.xml
blobc17f73e4e42dc13bd6efbcf1ef767471d50fa3f8
1 <project name="grails-resolve" xmlns:ivy="antlib:fr.jayasoft.ivy.ant">
2     <property name="ivy.install.version" value="1.4-RC1" />
3     <condition property="ivy.home" value="${env.IVY_HOME}">
4         <isset property="env.IVY_HOME" />
5     </condition>
6     <property name="ivy.home" value="${user.home}/.ivy" />
7     <property name="ivy.jar.dir" value="${ivy.home}/jars" />
8     <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />
9     <target name="download-ivy" unless="offline">
10         <mkdir dir="${ivy.jar.dir}"/>
11         <!-- download Ivy from web site so that it can be used even without any special installation -->
12         <get src="http://www.jayasoft.org/downloads/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"
13             dest="${ivy.jar.file}" usetimestamp="true"/>
14     </target>
15     <target name="init-ivy" depends="download-ivy">
16      <!-- try to load ivy here from ivy home, in case the user has not already dropped
17               it into ant's lib dir (note that the latter copy will always take precedence).
18               We will not fail as long as local lib dir exists (it may be empty) and
19               ivy is in at least one of ant's lib dir or the local lib dir. -->
20         <path id="ivy.lib.path">
21             <fileset dir="${ivy.jar.dir}" includes="*.jar"/>
22         </path>
23         <taskdef resource="fr/jayasoft/ivy/ant/antlib.xml"
24                 uri="antlib:fr.jayasoft.ivy.ant" classpathref="ivy.lib.path"/>
25     </target>      
26         
27         <target name="resolve" depends="init-ivy">
28                   <ivy:retrieve />
29         </target> 
30         
31         <target name="dep-report" depends="init-ivy">
32                   <mkdir dir="${grails.dist}/ivy" />
33                   <ivy:report organisation="codehaus" module="grails" conf="compile" todir="${grails.dist}/ivy" />
34         </target>
35         
36 </project>