Thanks a lot, both!

jardir is the key!

But:
<bundle>jardir:file:base/bundles/mybundle/</bundle>

not working due to exception:
Exception in thread "Thread-49" java.lang.NullPointerException
        at org.apache.felix.fileinstall.internal.Util.zipDir(Util.java:252)
        at org.apache.felix.fileinstall.internal.Util.jarDir(Util.java:232)
        at
org.apache.felix.fileinstall.internal.JarDirUrlHandler$Connection$1.run(JarDirUrlHandler.java:81)

Then I change to:
<bundle>jardir:base/bundles/mybundle/</bundle>

Without 'file', it is working well!

BR,

Ken




2013/11/21 Jean-Baptiste Onofré <[email protected]>

> Hi Ken,
>
> try to use the jardir: protocol:
>
> <bundle>jardir:file:base/bundles/mybundle/</bundle>
>
> Regards
> JB
>
>
> On 11/21/2013 02:29 PM, Ken Longnan wrote:
>
>> Hi,
>>
>> I have a bundle folder (not packaged as jar). How to install it by
>> feature?
>>
>> I know if need install a bundle jar, you can by following way:
>>
>>   <feature name="spring-web" version="2.5.6.SEC01">
>>        <bundle>file:base/bundles/spring-web-2.5.6.SEC01.jar</bundle>
>>   </feature>
>>
>> Can I use this way:
>> <bundle>folder:base/bundles/mybundle/</bundle>
>>
>> If just drop whole folder 'mybundle' into deploy directory, then bundle
>> will be installed.
>>
>>
>> Thanks for your help!
>>
>> BR,
>>
>> Ken
>>
>>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Reply via email to