comparison osgi-ant-bundlor.xml @ 37:ba7ae19e40a0

CM-125: output file to assist in creating OSGI template.
author smith@nwoca.org
date Mon, 09 May 2011 18:09:30 -0400
parents 82a5d5a000fe
children ec63736cd2a3
comparison
equal deleted inserted replaced
36:82a5d5a000fe 37:ba7ae19e40a0
7 7
8 <description>Ant tasks to assist building OSGi bundles.</description> 8 <description>Ant tasks to assist building OSGi bundles.</description>
9 9
10 <ssdtant:add-dependency target="-post-jar" depends="-osgi-jar"/> 10 <ssdtant:add-dependency target="-post-jar" depends="-osgi-jar"/>
11 11
12 <target name="-osgi-jar" depends="-init-osgi,ivy-info"> 12 <target name="-osgi-jar" depends="-init-osgi,ivy-info">
13 <ssdtosgi:jar jar="${dist.jar}"/> 13 <ssdtosgi:jar jar="${dist.jar}"/>
14 </target> 14 </target>
15 15
16 <target name="-init-osgi"> 16 <target name="-init-osgi">
17 <ivy:settings file="ivysettings.xml"/> 17 <ivy:settings file="ivysettings.xml"/>
35 <attribute name="name" description="Bundle Name" default="${application.title}"/> 35 <attribute name="name" description="Bundle Name" default="${application.title}"/>
36 <attribute name="version" description="Bundle Version" default="${ivy.revision}"/> 36 <attribute name="version" description="Bundle Version" default="${ivy.revision}"/>
37 <attribute name="template" description="Bundle Template" default="${basedir}/template.mf"/> 37 <attribute name="template" description="Bundle Template" default="${basedir}/template.mf"/>
38 <sequential> 38 <sequential>
39 <echo message="OSGI-ifying @{jar} as @{symbolicName};@{version}" level="info"/> 39 <echo message="OSGI-ifying @{jar} as @{symbolicName};@{version}" level="info"/>
40 <echoproperties destfile="${build.dir}/ivydeps.txt">
41 <propertyset>
42 <propertyref prefix="ivydeps"/>
43 <mapper type="glob" from="ivydeps.*" to="*"/>
44 </propertyset>
45 </echoproperties>
40 <bundlor:bundlor 46 <bundlor:bundlor
41 inputPath="${basedir}/@{jar}" 47 inputPath="${basedir}/@{jar}"
42 outputPath="${basedir}/@{jar}" 48 outputPath="${basedir}/@{jar}"
43 bundleVersion="@{version}" 49 bundleVersion="@{version}"
44 bundleSymbolicName="@{symbolicName}" 50 bundleSymbolicName="@{symbolicName}"
46 manifestTemplatePath="@{template}"> 52 manifestTemplatePath="@{template}">
47 <property name="bundle.name" value="@{name}"/> 53 <property name="bundle.name" value="@{name}"/>
48 <propertyset> 54 <propertyset>
49 <propertyref prefix="ivy"/> 55 <propertyref prefix="ivy"/>
50 <mapper type="glob" from="ivydeps.*" to="*"/> 56 <mapper type="glob" from="ivydeps.*" to="*"/>
51 </propertyset> 57 </propertyset>
52 </bundlor:bundlor> 58 </bundlor:bundlor>
53 </sequential> 59 </sequential>
54 </macrodef> 60 </macrodef>
55 61
56 </target> 62 </target>