comparison ivy-ant.xml @ 66:a85308f02ef4

update clean targets to handle user ivy in different location
author smith@nwoca.org
date Fri, 14 Oct 2011 08:35:40 -0400
parents 880f230dd947
children bd192b070501
comparison
equal deleted inserted replaced
65:eca23754b99a 66:a85308f02ef4
11 11
12 <dirname property="ivy.home" file="${ant.file.ivy-ant}"/> 12 <dirname property="ivy.home" file="${ant.file.ivy-ant}"/>
13 <property name="ivy-ant.location" location="${ant.file.ivy-ant}"/> 13 <property name="ivy-ant.location" location="${ant.file.ivy-ant}"/>
14 <dirname property="ivy-ant.base" file="${ivy-ant.location}"/> 14 <dirname property="ivy-ant.base" file="${ivy-ant.location}"/>
15 15
16 <property name="ivy.default.ivy.user.dir"
17 value="${user.home}/.ivy2"/>
16 <property name="ivy.default.cache.dir" 18 <property name="ivy.default.cache.dir"
17 value="${user.home}/.ivy2/cache"/> 19 value="${ivy.default.ivy.user.dir}/cache"/>
18 <property name="ivy.default.ivy.user.dir" 20 <property name="ivy.default.ivy.user.dir"
19 value="${user.home}/.ivy2"/> 21 value="${ivy.default.ivy.user.dir}/.ivy2"/>
20 <property name="ivy.local.default.root" 22 <property name="ivy.local.default.root"
21 value="${user.home}/.ivy2/local"/> 23 value="${ivy.default.ivy.user.dir}/.ivy2/local"/>
22 24
23 <ssdt:fetch dest="${ssdt.devel.kit}/ssdt.default.ivy.settings.xml" 25 <ssdt:fetch dest="${ssdt.devel.kit}/ssdt.default.ivy.settings.xml"
24 src="${ssdt.ivy.settings.src}"/> 26 src="${ssdt.ivy.settings.src}"/>
25 27
26 <target name="ivy-report" depends="init"> 28 <target name="ivy-report" depends="init">
33 <ivy:info file="ivy.xml" property="ivy.project"/> 35 <ivy:info file="ivy.xml" property="ivy.project"/>
34 <echoproperties prefix="ivy.project"/> 36 <echoproperties prefix="ivy.project"/>
35 </target> 37 </target>
36 38
37 <target name="ivy-clean-all" description="cleans ssdt caches and local builds" depends="init"> 39 <target name="ivy-clean-all" description="cleans ssdt caches and local builds" depends="init">
38 <delete failonerror="false" includeemptydirs="true" dir="${user.home}/.ivy2"/> 40 <delete failonerror="false" includeemptydirs="true" dir="${ivy.default.ivy.user.dir}"/>
39 </target> 41 </target>
40 42
41 <target name="ivy-clean" description="cleans ssdt caches and local builds" depends="init"> 43 <target name="ivy-clean" description="cleans ssdt caches and local builds" depends="init">
42 <delete failonerror="false" includeemptydirs="true"> 44 <delete failonerror="false" includeemptydirs="true">
43 <fileset dir="${user.home}/.ivy2/cache"> 45 <fileset dir="${ivy.default.ivy.user.dir}/cache">
44 <include name="*ssdt*.*"/> 46 <include name="*ssdt*.*"/>
45 </fileset> 47 </fileset>
46 </delete> 48 </delete>
47 <delete dir="${user.home}/.ivy2/cache/org.ssdt_ohio" failonerror="false"/> 49 <delete dir="${ivy.default.ivy.user.dir}/cache/org.ssdt_ohio" failonerror="false"/>
48 <delete dir="${user.home}/.ivy2/cache/org.nwoca.ssdt" failonerror="false"/> 50 <delete dir="${ivy.default.ivy.user.dir}/cache/org.nwoca.ssdt" failonerror="false"/>
49 <delete dir="${user.home}/.ivy2/ssdt-cache" failonerror="false"/> 51 <delete dir="${ivy.default.ivy.user.dir}/ssdt-cache" failonerror="false"/>
50 <delete dir="${user.home}/.ivy2/snapshot-cache" failonerror="false"/> 52 <delete dir="${ivy.default.ivy.user.dir}/snapshot-cache" failonerror="false"/>
51 <delete dir="${user.home}/.ivy2/local" failonerror="false"/> 53 <delete dir="${ivy.default.ivy.user.dir}/local" failonerror="false"/>
52 </target> 54 </target>
53 55
54 <target name="-ivy-retrieve-custom" depends="-ivy-define-classpaths,-ivy-retrieve-web-jars"> 56 <target name="-ivy-retrieve-custom" depends="-ivy-define-classpaths,-ivy-retrieve-web-jars">
55 </target> 57 </target>
56 58