jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-2119) Method to create default RepositoryConfig from just the repository directory
Date Tue, 19 May 2009 14:40:45 GMT

     [ https://issues.apache.org/jira/browse/JCR-2119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Jukka Zitting resolved JCR-2119.

    Resolution: Fixed

Added the following methods in revision 776310:

   RepositoryConfig.install(File dir);
   RepostiroyConfig.install(File xml, File dir);
   RepositoryConfig.create(File dir);
   RepositoryConfig.create(File xml, File dir);

The install() methods will automatically create the repository directory and configuration
file if they do not already exist. The create() methods will fail with an exception in the
same situation.

> Method to create default RepositoryConfig from just the repository directory
> ----------------------------------------------------------------------------
>                 Key: JCR-2119
>                 URL: https://issues.apache.org/jira/browse/JCR-2119
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Jukka Zitting
>            Assignee: Jukka Zitting
>            Priority: Minor
>             Fix For: 1.6.0
> It would be useful to have a static method like RepositoryConfig.create(File) that would
take the repository directory and expect to find the repository configuration in a "repository.xml"
file inside that directory.
> If the directory does not exist, it would be created. And if the repository configuration
file does not exist, then it would be created from the default configuration included in Jackrabbit.

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

View raw message