Mercurial > public > develkit
view spring-ltw-ant.xml @ 360:8238fff451c9
Cygwin has an ENV that container 'CI'. Causing build issues. Just check for 'github' to determine if it is a local build
author | davis@ssdt-ohio.org |
---|---|
date | Wed, 15 Nov 2023 14:48:56 -0500 |
parents | a9d9befd8dd2 |
children |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?> <project name="spring-ltw-ant" basedir="." xmlns:ivy="antlib:fr.jayasoft.ivy.ant" xmlns:ssdt="http://www.ssdt-ohio.org/ant/common" xmlns:ssdtant="antlib:org.ssdt_ohio.tools.ant"> <ssdtant:add-dependency target="-post-init" depends="-spring-ltw-init"/> <target name="-spring-ltw-init" depends="-spring-ltw-retrieve" unless="spring.ltw.disabled"> <var name="runmain.jvmargs.spring" value="${runmain.jvmargs}"/> <var name="runmain.jvmargs" value="${spring.agent.arg} ${runmain.jvmargs.spring}"/> <var name="runmain.jvmargs.spring" unset="true"/> <var name="run.jvmargs.spring" value="${run.jvmargs}"/> <var name="run.jvmargs" value="${spring.agent.arg} ${run.jvmargs.spring}"/> <var name="run.jvmargs.spring" unset="true"/> <echo message="enabled spring java agent: ${spring.agent.arg}"/> </target> <target name="-spring-ltw-retrieve" unless="spring.ltw.disabled"> <property name="spring.agent.org" value="org.springframework"/> <property name="spring.agent.module" value="org.springframework.instrument"/> <property name="spring.agent.revision" value="3.0.5.RELEASE"/> <ivy:resolve resolveId="springagentid" organisation="${spring.agent.org}" module="${spring.agent.module}" revision="${spring.agent.revision}" type="jar" inline="true" keep="true" log="quiet"/> <ivy:retrieve resolveid="springagentid" pattern="${basedir}/${build.dir}/${lib.dir}/spring-agent.[ext]" type="jar" log="quiet"/> <property name="spring.agent.arg" value="-javaagent:${build.dir}/${lib.dir}/spring-agent.jar"/> </target> </project>