[ 
https://issues.apache.org/jira/browse/FELIX-2066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832825#action_12832825
 ] 

Richard S. Hall commented on FELIX-2066:
----------------------------------------

I think this is more complicated than it sounds.

I think File Install will automatically start all bundles in a directory after 
it installs them. If fragments are coming from a separate directory and File 
Install deploys them after the host bundles, then it is too late to attach the 
fragments since the hosts have already been installed. However, if you can 
somehow guarantee that File Install processes the fragment directory before the 
host directory (I don't think this is possible), then it would work.

You may or may not notice this working in Equinox, because it supports dynamic 
attachment of fragments, but even it (from what I understand) will only 
dynamically attach fragments to a resolved host if the fragments do not import 
nor export anything. This is an under specified area of the spec and relying on 
any details is likely to leave your bundles implementation specific.

The only platform-neutral way is to modify File Install to deploy the fragment 
directory before the host directory and perform a refresh on all hosts.

> File Install fails to move fragment bundle into RESOLVED state
> --------------------------------------------------------------
>
>                 Key: FELIX-2066
>                 URL: https://issues.apache.org/jira/browse/FELIX-2066
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>         Environment: Windows XP, Java 6, Equinox , File-Install 2.0.8
>            Reporter: Shrini Joshi
>
> The file-install will install the fragment bundle but fails to move it to 
> resolve. The fragment bundle remains in INSTALLED state. 
> If we install it from equinox shell, then fragment bundle is installed and 
> resolved correctly. 
> Can someone please comment ?

-- 
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