Issue Details (XML | Word | Printable)

Key: FOR-588
Type: Task Task
Status: Open Open
Priority: Critical Critical
Assignee: Unassigned
Reporter: Ross Gardler
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Forrest

Design new configuration system

Created: 27/Jul/05 04:27 AM   Updated: 18/Nov/09 01:08 AM
Return to search
Component/s: Core operations
Affects Version/s: None
Fix Version/s: 0.10

Time Tracking:
Issue & Sub-Tasks
Issue Only
Not Specified

Issue Links:
Blocker
 
Incorporates
 
Reference
 

Sub-Tasks  All   Open   

 Description  « Hide
We need a new config system for Forrest for various reasons: the initial config system was known to be limited; to enable the specification of multiple Forrest sites within a single instance of Forrest; to accommodate the changes brought about by forrest:views, themes, and plugins.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Ross Gardler added a comment - 10/Aug/05 08:20 PM

Ross Gardler added a comment - 13/Aug/05 05:28 AM

David Crossley added a comment - 16/Aug/05 11:56 AM
This issue is the result of an ApacheCon discussion, more, including links to the original ApacheCon Summaries at :- FOR-618 "Create issues for items discussed at Apachecon"
 
Some devs had an initial discussion. The notes are in SVN at
http://svn.apache.org/repos/asf/forrest/events/apachecon-eu-2005/

David Crossley added a comment - 16/Aug/05 11:57 AM
NOTE: For any users thinking ("oh no, the next forrest will be hard to upgrade because of fundamental changes in the way it is configured", don't worry. We will (most likely) provide tools to facilitate this upgrade, we will need them ourselves anyway).

Ross Gardler added a comment - 03/Oct/05 03:49 AM

Ross Gardler added a comment - 21/Nov/05 11:37 AM
A new set of properties can now be defined in a "forrest.properties.xml" file in the root of the project. These properties are not defined in forrest.xconf, thus any property can be defined in this file. This enables plugins to define their own property values. Although at the time of writing functionality is minimal.

The format of the file is:

<?xml version="1.0" encoding="UTF-8"?>
<properties>
       <property name="daisy.navigation.docID" value="1208"/>
</properties>

Properties are retrieved in the sitemap and the locationmap (untested) using {project:PROPERTY.NAME}.

Currently there is no mechanism for loading defaults for plugin properties. This needs to be added.

In addition to plugins being able to define properties that can be overridden by the project properties file this addition enables us to remove the need to define properties in forrest.xconf.

Ross Gardler added a comment - 09/Dec/05 11:05 PM
We have a prototype solution in place for 0.8-dev

This solution solves the immediate problems for configuring plugins.

Reducing priority and moving to 0.9 when we will complete this functionaliy.

Ross Gardler added a comment - 04/Jan/06 10:06 AM
The process for doing this will change when the new property system is adopted (being prototyped in 0.8-dev)

Thorsten Scherler added a comment - 29/Jan/06 04:48 AM
The dispatcher needs an aggregation of forrest.properties.xml.

David Crossley added a comment - 28/Feb/08 04:32 AM
More discussion is at:
 RT: Storage of Properties
 http://marc.info/?t=120370236700002