You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2007/07/02 14:43:05 UTC

[jira] Commented: (FELIX-316) Configuration Admin should use the bundle data storage area by default.

    [ https://issues.apache.org/jira/browse/FELIX-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509557 ] 

Felix Meschberger commented on FELIX-316:
-----------------------------------------

Sounds reasonable. Just for clarification on my part:

Currently the configuration file location is slected as follows:

   - check the "felix.cm.dir" bundle context property 
   - if the property is not set fallback to the "config" directory in the current working directory (user.dir Java property)

I suspect you envision something like:

   - check the "felix.cm.dir" bundle context property 
   - if the property is not set use the "config" directory in the Configuration Admins bundle data area
   - If the framework has not bundle data area, that is BundleContext.getDataFile(String) returns null for any path fall back to the "config" directory in the current working directory (user.dir Java property)

alternatively, we could use the felix.cm.dir as follows:

  - if set and relative: use it inside the Bundle Data area (or current directory if there is Bundle Data area)
  - if set and absolute, use the exact path
  - if not set, use "config" in Bundle Data area (or current directory if there is Bundle Data area)

Actually, I tend to more like the second solution. What do you think ?


> Configuration Admin should use the bundle data storage area by default.
> -----------------------------------------------------------------------
>
>                 Key: FELIX-316
>                 URL: https://issues.apache.org/jira/browse/FELIX-316
>             Project: Felix
>          Issue Type: Improvement
>          Components: Configuration Admin
>            Reporter: Karl Pauls
>            Assignee: Felix Meschberger
>
> At present, the Configuration Admin creates a "config" dir in the user dir. There is the possibility to specify a different location via a property but this doesn't allow to make it use it's bundle data storage area. 
> I'd really like to have that possibility -- preferably, as the default.

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