blob: 22fed8883a6f22d85f1e37ad1781b7230bca2f9f [file] [log] [blame]
Rob Walkercf85daa2006-08-24 11:04:56 +00001# ------------------------------------------------------------------
2# Example mangen properties for generation of OBR descriptors
3# ------------------------------------------------------------------
4
5#
6# We don't use a ProcessBundles rule, hence no imports/exports will be generated
7# Rather than assume this will always be the case, we use a "Merge" rule to
8# merge the current imports/exports into the mangen set. This allows the
9# ObrReport to use the mangen generated set, and ensures that
10# descriptors can be created either from existing import/exports or generated
11# imports/exports.
12#
13mangen.rulesets=mangen-rule-
14mangen-rule-0=Merge existing imports(.*) exports(.*)
15
16#
17# Create the OBR descriptor report
18#
19mangen-report-0=ObrReport skip-jars(.*-src\\.jar)
20
21#-----------------------------------------------------------------------------
22#
23# Properties below this section should not be changed without a good
24# understanding of mangen's internal operation
25#
26
27# Specifies which scanner class to use.
28mangen.scanner.class=com.ascert.openosgi.mangen.BCELScanner
29#mangen.scanner.class=org.ungoverned.osgi.mangen.ASMClassScanner
30
31#
32# Controls which format of OBR descriptor to create
33#
34mangen.obr.ver=1
35
36#
37# Formats for OBR 1 descriptor
38#
39mangen.obr.descr.1=\
40<bundle>\n \
41 <bundle-name>@@hdr:Bundle-Name@@</bundle-name>\n \
42 <bundle-description>@@hdr:Bundle-Description@@</bundle-description>\n \
43 <bundle-updatelocation>@@hdr:Bundle-UpdateLocation@@</bundle-updatelocation>\n \
44 <bundle-sourceurl>@@hdr:Bundle-SourceUrl@@</bundle-sourceurl>\n \
45 <bundle-version>@@hdr:Bundle-Version@@</bundle-version>\n \
46 <bundle-docurl>@@hdr:Bundle-DocURL@@</bundle-docurl>\n \
47 <bundle-category>@@hdr:Bundle-Category@@</bundle-category>\n \
48 @@imports@@\
49 @@exports@@\n\
50</bundle>
51
52mangen.obr.import.1=<import-package package="@@pkg:name@@" @@import-ver@@/>\n
53mangen.obr.import.ver.1=specification-version="@@pkg:ver@@"
54
55mangen.obr.export.1=<export-package package="@@pkg:name@@" @@export-ver@@/>\n
56mangen.obr.export.ver.1=specification-version="@@pkg:ver@@"
57
58#
59# Formats for OBR 2 descriptor
60#
61mangen.obr.descr.2=\
62<bundle>\n \
63 <bundle-name>@@hdr:Bundle-Name@@</bundle-name>\n \
64 <bundle-symbolicname>@@hdr:Bundle-SymbolicName@@</bundle-symbolicname>\n \
65 <bundle-description>@@hdr:Bundle-Description@@</bundle-description>\n \
66 <bundle-url>@@hdr:Bundle-URL@@</bundle-url>\n \
67 <bundle-sourceurl>@@hdr:Bundle-SourceUrl@@</bundle-sourceurl>\n \
68 <bundle-version>@@hdr:Bundle-Version@@</bundle-version>\n \
69 <bundle-docurl>@@hdr:Bundle-DocURL@@</bundle-docurl>\n \
70 <bundle-category>@@hdr:Bundle-Category@@</bundle-category>\n \
71 @@imports@@ \
72 @@exports@@\n\
73</bundle>
74
75mangen.obr.import.2= \
76 <requirement>\n \
77 <![CDATA[\n \
78 (&(type=Export-Package)\n \
79 (name=@@pkg:name@@)\n \
80 @@import-ver@@)\n \
81 ]]>\n \
82 </requirement>\n
83mangen.obr.import.ver.2=(version>=@@pkg:ver@@)
84
85mangen.obr.export.2= \
86 <capability>\n \
87 <property name="type"\n \
88 type="java.lang.String"\n \
89 value="Export-Package"/>\n \
90 <property name="name"\n \
91 type="java.lang.String"\n \
92 value="@@pkg:name@@"/>\n \
93 @@export-ver@@\
94 </capability>
95mangen.obr.export.ver.2=\
96 <property name="version"\n \
97 type="org.ungoverned.osgi.bundle.bundlerepository.R4Version"\n \
98 value="@@pkg:ver@@"/>\n \
99
100