Mercurial > public > develkit
diff osgi-ant-bundlor.xml @ 36:82a5d5a000fe
CM-125: Auto connect osgi dependency to build process
author | smith@nwoca.org |
---|---|
date | Sat, 07 May 2011 11:22:58 -0400 |
parents | 7df554d8c4c1 |
children | ba7ae19e40a0 |
line wrap: on
line diff
--- a/osgi-ant-bundlor.xml Sat May 07 11:09:46 2011 -0400 +++ b/osgi-ant-bundlor.xml Sat May 07 11:22:58 2011 -0400 @@ -2,10 +2,17 @@ <project name="osgi-project-tasks" default="" basedir="." xmlns:ssdtosgi="http://www.ssdt-ohio.org/ant/osgi" xmlns:ivy="antlib:fr.jayasoft.ivy.ant" - xmlns:bundlor="antlib:com.springsource.bundlor.ant"> + xmlns:bundlor="antlib:com.springsource.bundlor.ant" + xmlns:ssdtant="antlib:org.ssdt_ohio.tools.ant"> <description>Ant tasks to assist building OSGi bundles.</description> - + + <ssdtant:add-dependency target="-post-jar" depends="-osgi-jar"/> + + <target name="-osgi-jar" depends="-init-osgi,ivy-info"> + <ssdtosgi:jar jar="${dist.jar}"/> + </target> + <target name="-init-osgi"> <ivy:settings file="ivysettings.xml"/> <ivy:cachepath resolveId="bundlor.classpath" @@ -29,6 +36,7 @@ <attribute name="version" description="Bundle Version" default="${ivy.revision}"/> <attribute name="template" description="Bundle Template" default="${basedir}/template.mf"/> <sequential> + <echo message="OSGI-ifying @{jar} as @{symbolicName};@{version}" level="info"/> <bundlor:bundlor inputPath="${basedir}/@{jar}" outputPath="${basedir}/@{jar}"