Changes between Initial Version and Version 1 of GnowsisConfiguration


Ignore:
Timestamp:
Nov 16, 2005, 4:25:03 PM (21 years ago)
Author:
sauermann
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GnowsisConfiguration

    v1 v1  
     1To configure your services, you have a folder inside the user's path. The folder is called
     2.gnowsis and inside that you either have config or data.
     3
     4
     5Suggestion, that is not binding:
     6each service has his web-inf folder, where you make a 'default' folder. During
     7your config api init, you get the ServiceContext object, which has a method like
     8"getServicePath" which returns the folder containing the WEB-INF. ie the
     9"epos_context" path is returned.
     10
     11you then call ConfigBlubManager.checkAndCopy(folderA, folderB) to check and copy
     12the defaults. the semantic of checkAndCopy is to copy everything that is to copy
     13everything from A to B that is not in B already. if a file in b already exists,
     14don't overwrite it.
     15
     16{{{
     17example for such an config dir:
     18blubservice/WEB-INF/default/config/setting.xml
     19is copied to
     20.gnowsis/config/blubservice/setting.xml
     21
     22and
     23blubservice/WEB-INF/default/data/setting.xml
     24is copied to
     25.gnowsis/data/blubservice/setting.xml
     26}}}