Skip to content

Commit

Permalink
Added bnd based wrapping of jna.jar to jna_osgi.jar instead of static…
Browse files Browse the repository at this point in the history
… manifest entries java-native-access#7
  • Loading branch information
Tisham Dhar authored and Tisham Dhar committed Jul 8, 2011
1 parent d32f34d commit 1b29a19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
<attribute name="Specification-Title" value="${spec.title}"/>
<attribute name="Specification-Vendor" value="${spec.vendor}"/>
<attribute name="Specification-Version" value="${spec.version}"/>
<!-- OSGi Bundle attributes -->
<!-- OSGi Bundle attributes
<attribute name="Bundle-ManifestVersion" value="2"/>
<attribute name="Bundle-Name" value="jna"/>
<attribute name="Bundle-Description" value="JNA Library"/>
Expand All @@ -234,7 +234,7 @@
<attribute name="Bundle-RequiredExecutionEnvironment" value="J2SE-1.4"/>
<attribute name="Bundle-Vendor" value="${vendor}"/>
<attribute name="Bundle-ActivationPolicy" value="lazy"/>
<attribute name="Export-Package" value="com.sun.jna,com.sun.jna.ptr,com.sun.jna.win32"/>
<attribute name="Export-Package" value="com.sun.jna,com.sun.jna.ptr,com.sun.jna.win32"/>-->
</section>
</manifest>
<fileset dir="${classes}" excludes="${jar.omitted}">
Expand All @@ -243,6 +243,11 @@
</jar>
</target>

<target name="osgi-jar" depends="jar" description="Wrap Jar including OSGi manifest entries">
<bnd-wrap definitions="${basedir}" output="${build}" jars="${build}/${jar}"/>
<move file="${build}/jna.bar" tofile="${build}/jna_osgi.jar"/>
</target>

<target name="contrib-jars" depends="jar" description="Build contrib jars">
<subant target="jar">
<property name="file.reference.jna.build" location="${build}"/>
Expand Down
File renamed without changes.

0 comments on commit 1b29a19

Please sign in to comment.