Mercurial > public > develkit
annotate spring-ltw-ant.xml @ 331:7bc7c6c79d7c
check for current release and hotfix branches when looking for latest snapshot
author | Marc Davis <davis@ssdt-ohio.org> |
---|---|
date | Mon, 06 Mar 2023 13:37:28 -0500 |
parents | a9d9befd8dd2 |
children |
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 |
64 | 8 <ssdtant:add-dependency target="-post-init" depends="-spring-ltw-init"/> |
61
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
9 |
64 | 10 <target name="-spring-ltw-init" depends="-spring-ltw-retrieve" unless="spring.ltw.disabled"> |
61
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
11 |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
12 <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
|
13 <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
|
14 <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
|
15 |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
16 <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
|
17 <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
|
18 <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
|
19 <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
|
20 |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
21 </target> |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
22 |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
23 <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
|
24 <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
|
25 <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
|
26 <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
|
27 <ivy:resolve resolveId="springagentid" |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
28 organisation="${spring.agent.org}" |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
29 module="${spring.agent.module}" |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
30 revision="${spring.agent.revision}" |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
31 type="jar" |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
32 inline="true" |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
33 keep="true" |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
34 log="quiet"/> |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
35 <ivy:retrieve |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
36 resolveid="springagentid" |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
37 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
|
38 type="jar" |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
39 log="quiet"/> |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
40 |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
41 <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
|
42 </target> |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
43 |
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 |
0fe9ada37b0a
USASR-505: script to retrieve spring agent and add to run.jvmargs
smith@nwoca.org
parents:
diff
changeset
|
46 </project> |