annotate spring-ltw-ant.xml @ 61:0fe9ada37b0a

USASR-505: script to retrieve spring agent and add to run.jvmargs
author smith@nwoca.org
date Mon, 08 Aug 2011 14:56:33 -0400
parents
children a9d9befd8dd2
rev   line source
61
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
2 <project name="spring-ltw-ant" basedir="."
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
3 xmlns:ivy="antlib:fr.jayasoft.ivy.ant"
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
4 xmlns:ssdt="http://www.ssdt-ohio.org/ant/common"
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
5 xmlns:ssdtant="antlib:org.ssdt_ohio.tools.ant">
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
6
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
7
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
8 <ssdtant:add-dependency target="-pre-test-run" depends="-spring-ltw-init"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
9 <ssdtant:add-dependency target="-pre-test-run-single" depends="-spring-ltw-init"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
10 <ssdtant:add-dependency target="run-single" depends="-spring-ltw-init"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
11 <ssdtant:add-dependency target="run-test-with-main" depends="-spring-ltw-init"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
12 <ssdtant:add-dependency target="idea.prepare.test.run" depends="-spring-ltw-init"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
13
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
14 <target name="-spring-ltw-init" depends="init,-spring-ltw-retrieve" unless="spring.ltw.disabled">
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
15
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
16 <var name="runmain.jvmargs.spring" value="${runmain.jvmargs}"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
17 <var name="runmain.jvmargs" value="${spring.agent.arg} ${runmain.jvmargs.spring}"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
18 <var name="runmain.jvmargs.spring" unset="true"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
19
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
20 <var name="run.jvmargs.spring" value="${run.jvmargs}"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
21 <var name="run.jvmargs" value="${spring.agent.arg} ${run.jvmargs.spring}"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
22 <var name="run.jvmargs.spring" unset="true"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
23 <echo message="enabled spring java agent: ${spring.agent.arg}"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
24
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
25 </target>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
26
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
27 <target name="-spring-ltw-retrieve" unless="spring.ltw.disabled">
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
28 <property name="spring.agent.org" value="org.springframework"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
29 <property name="spring.agent.module" value="org.springframework.instrument"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
30 <property name="spring.agent.revision" value="3.0.5.RELEASE"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
31 <ivy:resolve resolveId="springagentid"
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
32 organisation="${spring.agent.org}"
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
33 module="${spring.agent.module}"
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
34 revision="${spring.agent.revision}"
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
35 type="jar"
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
36 inline="true"
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
37 keep="true"
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
38 log="quiet"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
39 <ivy:retrieve
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
40 resolveid="springagentid"
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
41 pattern="${basedir}/${build.dir}/${lib.dir}/spring-agent.[ext]"
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
42 type="jar"
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
43 log="quiet"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
44
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
45 <property name="spring.agent.arg" value="-javaagent:${build.dir}/${lib.dir}/spring-agent.jar"/>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
46 </target>
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
47
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
48
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
49
0fe9ada37b0a USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff changeset
50 </project>