annotate ivy-ant.xml @ 8:26a4d8410fdf

TL-32: Refactor ivy include for non-ivy based projects.
author smith@nwoca.org
date Sat, 18 Dec 2010 14:20:32 -0500
parents be1051bf262f
children e4c45fd105ea
rev   line source
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
8
26a4d8410fdf TL-32: Refactor ivy include for non-ivy based projects.
smith@nwoca.org
parents: 4
diff changeset
2 <project name="ivy-ant" basedir="."
26a4d8410fdf TL-32: Refactor ivy include for non-ivy based projects.
smith@nwoca.org
parents: 4
diff changeset
3 xmlns:ivy="antlib:fr.jayasoft.ivy.ant"
26a4d8410fdf TL-32: Refactor ivy include for non-ivy based projects.
smith@nwoca.org
parents: 4
diff changeset
4 xmlns:ssdt="http://www.ssdt-ohio.org/ant/common">
26a4d8410fdf TL-32: Refactor ivy include for non-ivy based projects.
smith@nwoca.org
parents: 4
diff changeset
5
26a4d8410fdf TL-32: Refactor ivy include for non-ivy based projects.
smith@nwoca.org
parents: 4
diff changeset
6 <ssdt:fetch dest="${user.home.ant.lib}/ivy.jar"
26a4d8410fdf TL-32: Refactor ivy include for non-ivy based projects.
smith@nwoca.org
parents: 4
diff changeset
7 src="${ssdt.ivy.jar.src}"/>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
8
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
9 <dirname property="ivy.home" file="${ant.file.ivy-ant}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
10 <property name="ivy-ant.location" location="${ant.file.ivy-ant}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
11 <dirname property="ivy-ant.base" file="${ivy-ant.location}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
12
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
13 <property name="ivy.default.cache.dir"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
14 value="${user.home}/.ivy2/cache"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
15 <property name="ivy.default.ivy.user.dir"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
16 value="${user.home}/.ivy2"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
17 <property name="ivy.local.default.root"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
18 value="${user.home}/.ivy2/local"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
19
8
26a4d8410fdf TL-32: Refactor ivy include for non-ivy based projects.
smith@nwoca.org
parents: 4
diff changeset
20 <ssdt:fetch dest="${ssdt.devel.kit}/ssdt.default.ivy.settings.xml"
26a4d8410fdf TL-32: Refactor ivy include for non-ivy based projects.
smith@nwoca.org
parents: 4
diff changeset
21 src="${ssdt.ivy.settings.src}"/>
26a4d8410fdf TL-32: Refactor ivy include for non-ivy based projects.
smith@nwoca.org
parents: 4
diff changeset
22
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
23 <target name="ivy-report" depends="init">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
24 <mkdir dir="${build.dir}/ivy"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
25 <ivy:resolve log="quiet" file="ivy.xml"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
26 <ivy:report todir="${build.dir}/ivy" conf="*"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
27 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
28
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
29 <target name="ivy-info" depends="init">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
30 <ivy:info file="ivy.xml" property="ivy.project"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
31 <echoproperties prefix="ivy.project"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
32 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
33
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
34 <target name="ivy-clean" description="cleans ssdt caches and local builds" depends="init">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
35 <delete failonerror="false" includeemptydirs="true">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
36 <fileset dir="${user.home}/.ivy2/cache">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
37 <include name="org.ssdt_ohio/**"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
38 <include name="org.nwoca.ssdt/**"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
39 <include name="*org*.ssdt*.*"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
40 </fileset>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
41 </delete>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
42 <delete dir="${user.home}/.ivy2/ssdt-cache" failonerror="false"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
43 <delete dir="${user.home}/.ivy2/local" failonerror="false"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
44 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
45
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
46 <target name="-ivy-retrieve-custom" depends="-ivy-define-classpaths,-ivy-retrieve-web-jars">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
47 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
48
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
49 <target name="-ivy-copy-webjars" if="build.web.dir">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
50 <ivy:resolve log="quiet" file="ivy.xml"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
51 <ivy:retrieve pattern="${basedir}/${build.web.dir}/WEB-INF/lib/[artifact]-[revision].[ext]" type="jar"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
52 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
53
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
54 <target name="-ivy-retrieve-web-jars" if="build.web.dir">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
55 <ivy:retrieve pattern="${basedir}/${build.web.dir}/WEB-INF/lib/[artifact]-[revision].[ext]" type="jar"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
56 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
57
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
58 <target name="-ivy-define-classpaths">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
59 <!-- Custom SSDT retrieve target to replaced IvyBean's default -ivy-retrieve.
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
60 Builds a separate classpath for javac, javac.test, run, run.test, etc based
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
61 on the ivy configurations similer to how NetBeans would build them.
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
62 Uses "ivy:cachepath" instead of "ivy:retrieve". Although is is contrary
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
63 to "best practice" it avoids transfering all jars to build directory and
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
64 avoids problem with 'clean'. NetBeans and ant don't care where the files
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
65 are on disk and the builds are dependent on Ivy anyway. But the "runtime" jars
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
66 are still placed in dist/libs based on the correct run.classpath built by this
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
67 target.
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
68 -->
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
69 <ivy:settings file="ivysettings.xml"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
70 <ivy:resolve log="download-only" file="ivy.xml"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
71
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
72 <ivy:cachepath pathid="ivy.javac.classpath.id" conf="compile" type="jar"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
73 <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.javac.classpath">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
74 <path refid="ivy.javac.classpath.id"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
75 <!--map from="${basedir}${file.separator}" to=""/-->
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
76 </pathconvert>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
77 <property name="old.javac.classpath" value="${javac.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
78 <var name="javac.classpath" unset="true"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
79 <if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
80 <equals arg1="${old.javac.classpath}" arg2=""/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
81 <then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
82 <property name="javac.classpath" value="${ivy.javac.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
83 </then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
84 <else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
85 <property name="javac.classpath" value="${old.javac.classpath}${path.separator}${ivy.javac.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
86 </else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
87 </if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
88 <echo level="debug" message="$${javac.classpath} : ${javac.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
89
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
90 <ivy:cachepath pathid="ivy.javac.test.classpath.id" conf="compile,compile-test" type="jar"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
91 <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.javac.test.classpath">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
92 <path refid="ivy.javac.test.classpath.id"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
93 <!--map from="${basedir}${file.separator}" to=""/-->
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
94 </pathconvert>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
95 <property name="old.javac.test.classpath" value="${javac.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
96 <var name="javac.test.classpath" unset="true"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
97 <if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
98 <equals arg1="${old.javac.test.classpath}" arg2=""/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
99 <then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
100 <property name="javac.test.classpath" value="${ivy.javac.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
101 </then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
102 <else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
103 <property name="javac.test.classpath" value="${old.javac.test.classpath}${path.separator}${ivy.javac.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
104 </else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
105 </if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
106 <echo level="debug" message="$${javac.test.classpath} : ${javac.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
107
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
108 <ivy:cachepath pathid="ivy.run.classpath.id" conf="compile,runtime" type="jar"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
109 <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.run.classpath">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
110 <path refid="ivy.run.classpath.id"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
111 <!--map from="${basedir}${file.separator}" to=""/-->
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
112 </pathconvert>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
113 <property name="old.run.classpath" value="${run.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
114 <var name="run.classpath" unset="true"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
115 <if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
116 <equals arg1="${old.run.classpath}" arg2="$${run.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
117 <then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
118 <property name="run.classpath" value="${ivy.run.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
119 </then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
120 <else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
121 <property name="run.classpath" value="${old.run.classpath}${path.separator}${ivy.run.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
122 </else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
123 </if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
124 <echo level="debug" message="$${run.classpath} : ${run.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
125
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
126
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
127 <ivy:cachepath pathid="ivy.run.test.classpath.id" conf="compile,compile-test,runtime,runtime-test" type="jar"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
128 <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.run.test.classpath">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
129 <path refid="ivy.run.test.classpath.id"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
130 <!--map from="${basedir}${file.separator}" to=""/-->
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
131 </pathconvert>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
132
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
133 <property name="old.run.test.classpath" value="${run.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
134 <var name="run.test.classpath" unset="true"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
135 <if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
136 <equals arg1="${old.run.test.classpath}" arg2="$${run.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
137 <then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
138 <property name="run.test.classpath" value="${ivy.run.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
139 </then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
140 <else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
141 <property name="run.test.classpath" value="${old.run.test.classpath}${path.separator}${ivy.run.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
142 </else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
143 </if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
144 <echo level="debug" message="$${run.test.classpath} : ${run.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
145
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
146 <ivy:cachepath pathid="ivy.debug.classpath.id" conf="compile,runtime" type="jar"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
147 <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.debug.classpath">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
148 <path refid="ivy.debug.classpath.id"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
149 <!--map from="${basedir}${file.separator}" to=""/-->
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
150 </pathconvert>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
151 <property name="old.debug.classpath" value="${debug.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
152 <var name="debug.classpath" unset="true"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
153 <if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
154 <equals arg1="${old.debug.classpath}" arg2="$${debug.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
155 <then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
156 <property name="debug.classpath" value="${ivy.debug.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
157 </then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
158 <else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
159 <property name="debug.classpath" value="${old.debug.classpath}${path.separator}${ivy.debug.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
160 </else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
161 </if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
162 <echo level="debug" message="$${debug.classpath} : ${debug.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
163
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
164 <ivy:cachepath pathid="ivy.debug.test.classpath.id" conf="compile,compile-test,runtime,runtime-test" type="jar"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
165 <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.debug.test.classpath">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
166 <path refid="ivy.debug.test.classpath.id"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
167 <!--map from="${basedir}${file.separator}" to=""/-->
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
168 </pathconvert>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
169 <property name="old.debug.test.classpath" value="${debug.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
170 <var name="debug.test.classpath" unset="true"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
171 <if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
172 <equals arg1="${old.debug.test.classpath}" arg2="$${debug.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
173 <then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
174 <property name="debug.test.classpath" value="${ivy.debug.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
175 </then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
176 <else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
177 <property name="debug.test.classpath" value="${old.debug.test.classpath}${path.separator}${ivy.debug.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
178 </else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
179 </if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
180 <echo level="debug" message="$${debug.test.classpath} : ${debug.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
181 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
182
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
183
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
184 <target name="-ivy-javaagent" description="Retrieves load time weaver java agent">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
185 <property name="java.agent.org" value="org.springframework"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
186 <property name="java.agent.module" value="org.springframework.instrument"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
187 <property name="java.agent.revision" value="3.0.1.RELEASE-A"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
188 <ivy:resolve resolveId="javaagentid"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
189 organisation="${java.agent.org}"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
190 module="${java.agent.module}"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
191 revision="${java.agent.revision}"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
192 type="jar"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
193 inline="true"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
194 keep="true"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
195 log="quiet"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
196 <ivy:retrieve
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
197 resolveid="javaagentid"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
198 pattern="${basedir}/${build.dir}/${lib.dir}/java-agent.[ext]"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
199 type="jar"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
200 log="quiet"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
201 <property name="java.agent.jar"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
202 value="build/jar/java-agent.jar"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
203 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
204
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
205
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
206 </project>