[ 
https://issues.apache.org/jira/browse/KARAF-380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982658#action_12982658
 ] 

Jean-Baptiste Onofré commented on KARAF-380:
--------------------------------------------

I've commited a first very simple wrap deployer: revision 1059934.

I'm gonna make some enhancements especially around the Bundle-SymbolicName and 
Bundle-Version (getting from the MANIFEST or from the file name).

The BlueprintTranslator  provides an extractNameVersionType() method. This 
method is copied and used in several Karaf projects (spring deployer, feature 
deployer, etc). So it should be in the utils bundle.

The first action is to move the extractNameVersionType() into utils.

> Add .jar deployer autowrapping non-bundle-jar files dropped to deploy folder
> ----------------------------------------------------------------------------
>
>                 Key: KARAF-380
>                 URL: https://issues.apache.org/jira/browse/KARAF-380
>             Project: Karaf
>          Issue Type: New Feature
>            Reporter: Andreas Pieber
>            Assignee: Jean-Baptiste Onofré
>
> See http://mail-archives.apache.org/mod_mbox/karaf-dev/201101.mbox/browser 
> for full discussion; short summary:
> My concern is to deploy clients JARs like by example JARS used by project 
> Apache Hadoop
> If we detect a file in the deploy/ directory with the extension '.jar', AND 
> the JAR's manifest does NOT contain any OSGi headers, THEN we assume that 
> it's a plain-old-jar, and perform an auto-wrap.
> Using the OSGi ranking attribute on services should be sufficient in order to 
> keep them ordered.
> And checking the 'jar' extension would clearly remove most of the bad 
> situations for that case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to