comparison ivy-ant.xml @ 18:e4c45fd105ea

TL-32: Modify iivy-ant to retrieve 'runtime' conf for web libraries.
author smith@nwoca.org
date Tue, 11 Jan 2011 19:02:58 -0500
parents 26a4d8410fdf
children 2632897c8a2b
comparison
equal deleted inserted replaced
17:fc114dab4c50 18:e4c45fd105ea
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="ivy-ant" basedir="." 2 <project name="ivy-ant" basedir="."
3 xmlns:ivy="antlib:fr.jayasoft.ivy.ant" 3 xmlns:ivy="antlib:fr.jayasoft.ivy.ant"
4 xmlns:ssdt="http://www.ssdt-ohio.org/ant/common"> 4 xmlns:ssdt="http://www.ssdt-ohio.org/ant/common">
5
6 <property name="ssdt.ivy.jar.src" value="http://ivy.ssdt.nwoca.org/repository/ivy/ivy.jar"/>
7 <property name="ssdt.ivy.settings.src" value="${ssdt.devel.kit.src}/ssdt.default.ivy.settings.xml"/>
5 8
6 <ssdt:fetch dest="${user.home.ant.lib}/ivy.jar" 9 <ssdt:fetch dest="${user.home.ant.lib}/ivy.jar"
7 src="${ssdt.ivy.jar.src}"/> 10 src="${ssdt.ivy.jar.src}"/>
8 11
9 <dirname property="ivy.home" file="${ant.file.ivy-ant}"/> 12 <dirname property="ivy.home" file="${ant.file.ivy-ant}"/>
46 <target name="-ivy-retrieve-custom" depends="-ivy-define-classpaths,-ivy-retrieve-web-jars"> 49 <target name="-ivy-retrieve-custom" depends="-ivy-define-classpaths,-ivy-retrieve-web-jars">
47 </target> 50 </target>
48 51
49 <target name="-ivy-copy-webjars" if="build.web.dir"> 52 <target name="-ivy-copy-webjars" if="build.web.dir">
50 <ivy:resolve log="quiet" file="ivy.xml"/> 53 <ivy:resolve log="quiet" file="ivy.xml"/>
51 <ivy:retrieve pattern="${basedir}/${build.web.dir}/WEB-INF/lib/[artifact]-[revision].[ext]" type="jar"/> 54 <ivy:retrieve pattern="${basedir}/${build.web.dir}/WEB-INF/lib/[artifact]-[revision].[ext]" type="jar" conf="runtime"/>
52 </target> 55 </target>
53 56
54 <target name="-ivy-retrieve-web-jars" if="build.web.dir"> 57 <target name="-ivy-retrieve-web-jars" if="build.web.dir">
55 <ivy:retrieve pattern="${basedir}/${build.web.dir}/WEB-INF/lib/[artifact]-[revision].[ext]" type="jar"/> 58 <ivy:retrieve pattern="${basedir}/${build.web.dir}/WEB-INF/lib/[artifact]-[revision].[ext]" type="jar" conf="runtime"/>
56 </target> 59 </target>
57 60
58 <target name="-ivy-define-classpaths"> 61 <target name="-ivy-define-classpaths">
59 <!-- Custom SSDT retrieve target to replaced IvyBean's default -ivy-retrieve. 62 <!-- Custom SSDT retrieve target to replaced IvyBean's default -ivy-retrieve.
60 Builds a separate classpath for javac, javac.test, run, run.test, etc based 63 Builds a separate classpath for javac, javac.test, run, run.test, etc based