annotate ivy-ant.xml @ 67:9dcb429eea14

USPSR-346: clean up groovy script and allow jacoco to be disabled.
author smith@nwoca.org
date Fri, 14 Oct 2011 14:32:50 -0400
parents a85308f02ef4
children bd192b070501
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">
18
e4c45fd105ea TL-32: Modify iivy-ant to retrieve 'runtime' conf for web libraries.
smith@nwoca.org
parents: 8
diff changeset
5
e4c45fd105ea TL-32: Modify iivy-ant to retrieve 'runtime' conf for web libraries.
smith@nwoca.org
parents: 8
diff changeset
6 <property name="ssdt.ivy.jar.src" value="http://ivy.ssdt.nwoca.org/repository/ivy/ivy.jar"/>
e4c45fd105ea TL-32: Modify iivy-ant to retrieve 'runtime' conf for web libraries.
smith@nwoca.org
parents: 8
diff changeset
7 <property name="ssdt.ivy.settings.src" value="${ssdt.devel.kit.src}/ssdt.default.ivy.settings.xml"/>
8
26a4d8410fdf TL-32: Refactor ivy include for non-ivy based projects.
smith@nwoca.org
parents: 4
diff changeset
8
26a4d8410fdf TL-32: Refactor ivy include for non-ivy based projects.
smith@nwoca.org
parents: 4
diff changeset
9 <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
10 src="${ssdt.ivy.jar.src}"/>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
11
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
12 <dirname property="ivy.home" file="${ant.file.ivy-ant}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
13 <property name="ivy-ant.location" location="${ant.file.ivy-ant}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
14 <dirname property="ivy-ant.base" file="${ivy-ant.location}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
15
66
a85308f02ef4 update clean targets to handle user ivy in different location
smith@nwoca.org
parents: 62
diff changeset
16 <property name="ivy.default.ivy.user.dir"
a85308f02ef4 update clean targets to handle user ivy in different location
smith@nwoca.org
parents: 62
diff changeset
17 value="${user.home}/.ivy2"/>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
18 <property name="ivy.default.cache.dir"
66
a85308f02ef4 update clean targets to handle user ivy in different location
smith@nwoca.org
parents: 62
diff changeset
19 value="${ivy.default.ivy.user.dir}/cache"/>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
20 <property name="ivy.default.ivy.user.dir"
66
a85308f02ef4 update clean targets to handle user ivy in different location
smith@nwoca.org
parents: 62
diff changeset
21 value="${ivy.default.ivy.user.dir}/.ivy2"/>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
22 <property name="ivy.local.default.root"
66
a85308f02ef4 update clean targets to handle user ivy in different location
smith@nwoca.org
parents: 62
diff changeset
23 value="${ivy.default.ivy.user.dir}/.ivy2/local"/>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
24
8
26a4d8410fdf TL-32: Refactor ivy include for non-ivy based projects.
smith@nwoca.org
parents: 4
diff changeset
25 <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
26 src="${ssdt.ivy.settings.src}"/>
26a4d8410fdf TL-32: Refactor ivy include for non-ivy based projects.
smith@nwoca.org
parents: 4
diff changeset
27
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
28 <target name="ivy-report" depends="init">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
29 <mkdir dir="${build.dir}/ivy"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
30 <ivy:resolve log="quiet" file="ivy.xml"/>
62
880f230dd947 change ivy-report to only produce 'runtime' report and produce dot files
smith@nwoca.org
parents: 56
diff changeset
31 <ivy:report todir="${build.dir}/ivy" conf="runtime" graph="false" dot="true"/>
4
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-info" depends="init">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
35 <ivy:info file="ivy.xml" property="ivy.project"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
36 <echoproperties prefix="ivy.project"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
37 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
38
48
561ece0a8225 Return to using snapshot resolver to ensure ivy.xml file from dependency can be found and improve performance and tracbility. removed changing from chain. Modified local to be treated as local.
smith@nwoca.org
parents: 26
diff changeset
39 <target name="ivy-clean-all" description="cleans ssdt caches and local builds" depends="init">
66
a85308f02ef4 update clean targets to handle user ivy in different location
smith@nwoca.org
parents: 62
diff changeset
40 <delete failonerror="false" includeemptydirs="true" dir="${ivy.default.ivy.user.dir}"/>
48
561ece0a8225 Return to using snapshot resolver to ensure ivy.xml file from dependency can be found and improve performance and tracbility. removed changing from chain. Modified local to be treated as local.
smith@nwoca.org
parents: 26
diff changeset
41 </target>
561ece0a8225 Return to using snapshot resolver to ensure ivy.xml file from dependency can be found and improve performance and tracbility. removed changing from chain. Modified local to be treated as local.
smith@nwoca.org
parents: 26
diff changeset
42
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
43 <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
44 <delete failonerror="false" includeemptydirs="true">
66
a85308f02ef4 update clean targets to handle user ivy in different location
smith@nwoca.org
parents: 62
diff changeset
45 <fileset dir="${ivy.default.ivy.user.dir}/cache">
48
561ece0a8225 Return to using snapshot resolver to ensure ivy.xml file from dependency can be found and improve performance and tracbility. removed changing from chain. Modified local to be treated as local.
smith@nwoca.org
parents: 26
diff changeset
46 <include name="*ssdt*.*"/>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
47 </fileset>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
48 </delete>
66
a85308f02ef4 update clean targets to handle user ivy in different location
smith@nwoca.org
parents: 62
diff changeset
49 <delete dir="${ivy.default.ivy.user.dir}/cache/org.ssdt_ohio" failonerror="false"/>
a85308f02ef4 update clean targets to handle user ivy in different location
smith@nwoca.org
parents: 62
diff changeset
50 <delete dir="${ivy.default.ivy.user.dir}/cache/org.nwoca.ssdt" failonerror="false"/>
a85308f02ef4 update clean targets to handle user ivy in different location
smith@nwoca.org
parents: 62
diff changeset
51 <delete dir="${ivy.default.ivy.user.dir}/ssdt-cache" failonerror="false"/>
a85308f02ef4 update clean targets to handle user ivy in different location
smith@nwoca.org
parents: 62
diff changeset
52 <delete dir="${ivy.default.ivy.user.dir}/snapshot-cache" failonerror="false"/>
a85308f02ef4 update clean targets to handle user ivy in different location
smith@nwoca.org
parents: 62
diff changeset
53 <delete dir="${ivy.default.ivy.user.dir}/local" failonerror="false"/>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
54 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
55
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
56 <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
57 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
58
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
59 <target name="-ivy-copy-webjars" if="build.web.dir">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
60 <ivy:resolve log="quiet" file="ivy.xml"/>
18
e4c45fd105ea TL-32: Modify iivy-ant to retrieve 'runtime' conf for web libraries.
smith@nwoca.org
parents: 8
diff changeset
61 <ivy:retrieve pattern="${basedir}/${build.web.dir}/WEB-INF/lib/[artifact]-[revision].[ext]" type="jar" conf="runtime"/>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
62 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
63
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
64 <target name="-ivy-retrieve-web-jars" if="build.web.dir">
18
e4c45fd105ea TL-32: Modify iivy-ant to retrieve 'runtime' conf for web libraries.
smith@nwoca.org
parents: 8
diff changeset
65 <ivy:retrieve pattern="${basedir}/${build.web.dir}/WEB-INF/lib/[artifact]-[revision].[ext]" type="jar" conf="runtime"/>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
66 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
67
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
68 <target name="-ivy-define-classpaths">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
69 <!-- Custom SSDT retrieve target to replaced IvyBean's default -ivy-retrieve.
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
70 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
71 on the ivy configurations similer to how NetBeans would build them.
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
72 Uses "ivy:cachepath" instead of "ivy:retrieve". Although is is contrary
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
73 to "best practice" it avoids transfering all jars to build directory and
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
74 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
75 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
76 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
77 target.
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
78 -->
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
79 <ivy:settings file="ivysettings.xml"/>
53
7066d68bcb47 enable resolve logging. Fixed changing pattern. set ttl on snapshot cache. Allow forcemode to be disabled.
smith@nwoca.org
parents: 48
diff changeset
80 <ivy:resolve file="ivy.xml" />
19
2632897c8a2b CM-125: Update ivy resolve to create Ant properties for resolved modules with version.
smith@nwoca.org
parents: 18
diff changeset
81 <ivy:artifactproperty conf="*"
2632897c8a2b CM-125: Update ivy resolve to create Ant properties for resolved modules with version.
smith@nwoca.org
parents: 18
diff changeset
82 name="ivydeps.[organisation]-[module]"
2632897c8a2b CM-125: Update ivy resolve to create Ant properties for resolved modules with version.
smith@nwoca.org
parents: 18
diff changeset
83 value="[revision]"/>
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
84
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
85 <ivy:cachepath pathid="ivy.javac.classpath.id" conf="compile" type="jar"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
86 <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.javac.classpath">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
87 <path refid="ivy.javac.classpath.id"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
88 <!--map from="${basedir}${file.separator}" to=""/-->
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
89 </pathconvert>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
90 <property name="old.javac.classpath" value="${javac.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
91 <var name="javac.classpath" unset="true"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
92 <if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
93 <equals arg1="${old.javac.classpath}" arg2=""/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
94 <then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
95 <property name="javac.classpath" value="${ivy.javac.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
96 </then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
97 <else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
98 <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
99 </else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
100 </if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
101 <echo level="debug" message="$${javac.classpath} : ${javac.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
102
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
103 <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
104 <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.javac.test.classpath">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
105 <path refid="ivy.javac.test.classpath.id"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
106 <!--map from="${basedir}${file.separator}" to=""/-->
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
107 </pathconvert>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
108 <property name="old.javac.test.classpath" value="${javac.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
109 <var name="javac.test.classpath" unset="true"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
110 <if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
111 <equals arg1="${old.javac.test.classpath}" arg2=""/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
112 <then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
113 <property name="javac.test.classpath" value="${ivy.javac.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
114 </then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
115 <else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
116 <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
117 </else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
118 </if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
119 <echo level="debug" message="$${javac.test.classpath} : ${javac.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
120
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
121 <ivy:cachepath pathid="ivy.run.classpath.id" conf="compile,runtime" type="jar"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
122 <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.run.classpath">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
123 <path refid="ivy.run.classpath.id"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
124 <!--map from="${basedir}${file.separator}" to=""/-->
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
125 </pathconvert>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
126 <property name="old.run.classpath" value="${run.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
127 <var name="run.classpath" unset="true"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
128 <if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
129 <equals arg1="${old.run.classpath}" arg2="$${run.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
130 <then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
131 <property name="run.classpath" value="${ivy.run.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
132 </then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
133 <else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
134 <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
135 </else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
136 </if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
137 <echo level="debug" message="$${run.classpath} : ${run.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
138
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
139
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
140 <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
141 <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.run.test.classpath">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
142 <path refid="ivy.run.test.classpath.id"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
143 <!--map from="${basedir}${file.separator}" to=""/-->
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
144 </pathconvert>
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 <property name="old.run.test.classpath" value="${run.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
147 <var name="run.test.classpath" unset="true"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
148 <if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
149 <equals arg1="${old.run.test.classpath}" arg2="$${run.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
150 <then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
151 <property name="run.test.classpath" value="${ivy.run.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
152 </then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
153 <else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
154 <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
155 </else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
156 </if>
26
639bec4999f2 TL-34: Scripts for sonar integration
smith@nwoca.org
parents: 19
diff changeset
157 <if>
48
561ece0a8225 Return to using snapshot resolver to ensure ivy.xml file from dependency can be found and improve performance and tracbility. removed changing from chain. Modified local to be treated as local.
smith@nwoca.org
parents: 26
diff changeset
158 <isset property="coverage.run.with.cobertura"/>
561ece0a8225 Return to using snapshot resolver to ensure ivy.xml file from dependency can be found and improve performance and tracbility. removed changing from chain. Modified local to be treated as local.
smith@nwoca.org
parents: 26
diff changeset
159 <then>
26
639bec4999f2 TL-34: Scripts for sonar integration
smith@nwoca.org
parents: 19
diff changeset
160 <property name="precoverage.run.test.classpath" value="${run.test.classpath}"/>
639bec4999f2 TL-34: Scripts for sonar integration
smith@nwoca.org
parents: 19
diff changeset
161 <var name="run.test.classpath" unset="true"/>
639bec4999f2 TL-34: Scripts for sonar integration
smith@nwoca.org
parents: 19
diff changeset
162 <property name="run.test.classpath" value="${cobertura.instrumented.classes}${path.separator}${precoverage.run.test.classpath}${path.separator}${cobertura.classpath.path}"/>
639bec4999f2 TL-34: Scripts for sonar integration
smith@nwoca.org
parents: 19
diff changeset
163 </then>
48
561ece0a8225 Return to using snapshot resolver to ensure ivy.xml file from dependency can be found and improve performance and tracbility. removed changing from chain. Modified local to be treated as local.
smith@nwoca.org
parents: 26
diff changeset
164 </if>
26
639bec4999f2 TL-34: Scripts for sonar integration
smith@nwoca.org
parents: 19
diff changeset
165 <if>
48
561ece0a8225 Return to using snapshot resolver to ensure ivy.xml file from dependency can be found and improve performance and tracbility. removed changing from chain. Modified local to be treated as local.
smith@nwoca.org
parents: 26
diff changeset
166 <isset property="coverage.run.with.clover"/>
561ece0a8225 Return to using snapshot resolver to ensure ivy.xml file from dependency can be found and improve performance and tracbility. removed changing from chain. Modified local to be treated as local.
smith@nwoca.org
parents: 26
diff changeset
167 <then>
26
639bec4999f2 TL-34: Scripts for sonar integration
smith@nwoca.org
parents: 19
diff changeset
168 <property name="preclover.run.test.classpath" value="${run.test.classpath}"/>
639bec4999f2 TL-34: Scripts for sonar integration
smith@nwoca.org
parents: 19
diff changeset
169 <var name="run.test.classpath" unset="true"/>
639bec4999f2 TL-34: Scripts for sonar integration
smith@nwoca.org
parents: 19
diff changeset
170 <property name="run.test.classpath" value="${preclover.run.test.classpath}${path.separator}${clover.jar.file}"/>
639bec4999f2 TL-34: Scripts for sonar integration
smith@nwoca.org
parents: 19
diff changeset
171 </then>
48
561ece0a8225 Return to using snapshot resolver to ensure ivy.xml file from dependency can be found and improve performance and tracbility. removed changing from chain. Modified local to be treated as local.
smith@nwoca.org
parents: 26
diff changeset
172 </if>
26
639bec4999f2 TL-34: Scripts for sonar integration
smith@nwoca.org
parents: 19
diff changeset
173
4
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
174 <echo level="debug" message="$${run.test.classpath} : ${run.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
175
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
176 <ivy:cachepath pathid="ivy.debug.classpath.id" conf="compile,runtime" type="jar"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
177 <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.debug.classpath">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
178 <path refid="ivy.debug.classpath.id"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
179 <!--map from="${basedir}${file.separator}" to=""/-->
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
180 </pathconvert>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
181 <property name="old.debug.classpath" value="${debug.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
182 <var name="debug.classpath" unset="true"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
183 <if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
184 <equals arg1="${old.debug.classpath}" arg2="$${debug.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
185 <then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
186 <property name="debug.classpath" value="${ivy.debug.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
187 </then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
188 <else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
189 <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
190 </else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
191 </if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
192 <echo level="debug" message="$${debug.classpath} : ${debug.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
193
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
194 <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
195 <pathconvert dirsep="/" pathsep="${path.separator}" property="ivy.debug.test.classpath">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
196 <path refid="ivy.debug.test.classpath.id"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
197 <!--map from="${basedir}${file.separator}" to=""/-->
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
198 </pathconvert>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
199 <property name="old.debug.test.classpath" value="${debug.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
200 <var name="debug.test.classpath" unset="true"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
201 <if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
202 <equals arg1="${old.debug.test.classpath}" arg2="$${debug.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
203 <then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
204 <property name="debug.test.classpath" value="${ivy.debug.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
205 </then>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
206 <else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
207 <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
208 </else>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
209 </if>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
210 <echo level="debug" message="$${debug.test.classpath} : ${debug.test.classpath}"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
211 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
212
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
213
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
214 <target name="-ivy-javaagent" description="Retrieves load time weaver java agent">
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
215 <property name="java.agent.org" value="org.springframework"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
216 <property name="java.agent.module" value="org.springframework.instrument"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
217 <property name="java.agent.revision" value="3.0.1.RELEASE-A"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
218 <ivy:resolve resolveId="javaagentid"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
219 organisation="${java.agent.org}"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
220 module="${java.agent.module}"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
221 revision="${java.agent.revision}"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
222 type="jar"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
223 inline="true"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
224 keep="true"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
225 log="quiet"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
226 <ivy:retrieve
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
227 resolveid="javaagentid"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
228 pattern="${basedir}/${build.dir}/${lib.dir}/java-agent.[ext]"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
229 type="jar"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
230 log="quiet"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
231 <property name="java.agent.jar"
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
232 value="build/jar/java-agent.jar"/>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
233 </target>
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
234
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
235
be1051bf262f add globally common ant scripts
smith@nwoca.org
parents:
diff changeset
236 </project>