Project

General

Profile

« Previous | Next » 

Revision 3081

Added by Matt Jones over 17 years ago

Began work on a web interface for configuring metacat at runtime. This system
checks the 'configured' property when metacat starts up. If configured=false, then
it loads an HTML form containing the properties that need to be set. The user configures the properties and they are written into the metacat.properties file. Then metacat needs to be restarted.

Lots still to do here -- its not really useful yet because I hardcoded 2 properties to be collected (user and password), but really the list should be gotten from the properties file itself.

This should not get in your way because by default I checked in 'configured=true' to the properties file so the configuration code is never called.

View differences:

metacat.properties
1 1
#
2

  
3 2
# Properties file defining options for the MetaCatServlet.java servlet
4

  
3
#
5 4
# Matt Jones, Dan Higgins, Jivka Bojilova
6

  
7 5
# '$Id$'
8

  
9 6
#
10 7

  
11
configured=false
8
######## Configuration section        #########################################
9
# This flag indicates whether configuration information has been collected from
10
# the user installing metacat yet.
11
configured=true
12 12

  
13
configurationPage=/configure.jsp
14

  
15
configurationSuccessPage=/configure-restart.jsp
16

  
13 17
version=1.6.0
14 18

  
19
######## Database section             #########################################
15 20
user=@user@
16 21

  
17 22
password=@password@
......
44 49

  
45 50
cycleTimeOfDBConnection=30000
46 51

  
52
######## Access section               #########################################
47 53
administrators=@administrators@
48 54

  
49 55
moderators=@moderators@
......
176 182
# that combination has been requested 50 times, set this value to 50
177 183
xml_returnfield_count=0
178 184

  
179
# Harvester properties
185
######## Harvester section            #########################################
180 186
connectToMetacat=true
181 187

  
182 188
delay=0
......
223 229

  
224 230
# End of Harvester properties
225 231

  
226

  
227
# BEGIN spatial options
232
######## Spatial section              #########################################
228 233
runSpatialOption=true
229 234
regenerateCacheOnRestart=true
230 235

  

Also available in: Unified diff