rcsa7 / java-simple-serial-connector

Automatically exported from code.google.com/p/java-simple-serial-connector
0 stars 0 forks source link

OSGi-Bundle #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Please Provide a OSGi-Bundle for JSSC and corresponding platform & architecture 
dependent native framgments.

I would propose the bundle name: org.scream3r.jssc
Maybe the packages should be updated also, its uncommon to use a package name 
of one word. Normally the namespace can be mapped to the project homepage eg. 
"org.apache.tomcat"

Original issue reported on code.google.com by chriss....@gmail.com on 29 Oct 2012 at 10:05

GoogleCodeExporter commented 8 years ago
Our Project makes use of Jssc 2.6.0, but as the jar is not enriched with OSGi 
bundne manifest data, then we are currently repackaging it ourselves. 
Also maven repository support would be sweet. 

Original comment by tazzz...@gmail.com on 30 Oct 2013 at 10:45

GoogleCodeExporter commented 8 years ago
Just wanted to drop a comment here and say that the jSSC project would actually 
be perfect for an OSGi bundle. OSGi provides an option in the manifest to load 
native code resources that are packed inside the jar, and can specify which 
ones are loaded based on OS and processor architecture, using the 
"Bundle-NativeCode" parameter in Manifest.

It basically does the whole static block of the SerialNativeInterface.java 
file, in a filespace managed by OSGi, so that that entire code section can be 
reduced to a single line: System.loadLibrary("jSSC-$(version)_$(architecture)");

Original comment by wbar8...@gmail.com on 18 Nov 2014 at 5:07