@@ -69,88 +69,85 @@ Supported Environment Variables for configuring the default setup:
69
69
generated
70
70
- OPENGROK_CTAGS Full path to Exuberant or Universal CTags binary
71
71
- OPENGROK_CTAGS_OPTIONS_FILE Full path to file with extra command line
72
- options for CTags program (for its --options
73
- switch), default is DATA_ROOT/etc/ctags.config
72
+ options for CTags program (for its --options
73
+ switch). Default is DATA_ROOT/etc/ctags.config
74
74
- OPENGROK_MANDOC Full path to mandoc(1) binary
75
75
- OPENGROK_LOCKING Locking mode on|off|simple|native (default off)
76
- ("on" is an alias for "simple")
76
+ ("on" is an alias for "simple")
77
77
- JAVA_HOME Full Path to Java Installation Root
78
78
- JAVA Full Path to java binary (to enable 64bit JDK)
79
79
- JAVA_OPTS Java options (e.g. for JVM memory increase
80
- or enabling server JDK)
81
- JAVA_OPTS=-Xmx2048m is the default!
80
+ or enabling server JDK)
81
+ JAVA_OPTS=-Xmx2048m is the default!
82
82
- OPENGROK_APP_SERVER Application Server ("Tomcat", "Glassfish" or
83
- "Resin")
83
+ "Resin")
84
84
- OPENGROK_WAR_TARGET_TOMCAT Tomcat Specific WAR Target Directory
85
85
- OPENGROK_WAR_TARGET_GLASSFISH Glassfish Specific WAR Target Directory
86
86
- OPENGROK_WAR_TARGET_RESIN Resin Specific WAR Target Directory
87
87
- OPENGROK_WAR_TARGET Fallback WAR Target Directory
88
88
- OPENGROK_TOMCAT_BASE Base Directory for Tomcat (contains webapps)
89
- - OPENGROK_GLASSFISH_BASE Base Directory for Glassfish
90
- (contains domains)
89
+ - OPENGROK_GLASSFISH_BASE Base Directory for Glassfish (contains domains)
91
90
- OPENGROK_GLASSFISH_DOMAIN Preferred Glassfish Domain Name
92
91
- OPENGROK_RESIN_BASE Base Directory for Resin (contains webapps)
93
92
- OPENGROK_VERBOSE Enable Verbose Mode in opengrok.jar (*)
94
93
- OPENGROK_PROGRESS Shows progress in %(percentage) of working
95
- through project, it's good to have Verbose
96
- Mode enabled too, cost of this is one more
97
- traversal of the project before indexing it(*)
98
- - OPENGROK_RENAMED_FILES_HISTORY If set to "on", get full history of
99
- renamed files for SCMs that support it (Git,
100
- Mercurial).
101
- The default is off.
102
- When set to on, the indexing is slower,
103
- especially in the presence of
104
- lots of renamed files in the repository.
94
+ through project. It's good to have Verbose
95
+ Mode enabled too. (*)
96
+ - OPENGROK_RENAMED_FILES_HISTORY Get full history of renamed files for SCMs
97
+ that support it (Git, Mercurial). When set to
98
+ on, the indexing is slower, especially in the
99
+ presence of lots of renamed files in the
100
+ repository.
101
+ on|off (default off) (^)
105
102
- OPENGROK_GENERATE_HISTORY Influence history cache generation
106
- Following values are recognized:
107
- on - enabled (default)
103
+ Following values are recognized:
104
+ on - enabled (default) (^)
108
105
off - disabled for indexing and UI
109
106
dirbased - indexing enabled only for
110
107
repos which can fetch history
111
108
for directory
112
109
local - for local repos only
113
110
uionly - enabled for UI only
114
- - OPENGROK_ENABLE_PROJECTS Enable projects (set it to true or false)
115
- Every directory in SRC_ROOT is
116
- considered a separate project
111
+ - OPENGROK_ENABLE_PROJECTS Enable projects, where every directory in
112
+ SRC_ROOT is considered a separate project.
113
+ on|off (default on) (^)
117
114
- OPENGROK_IGNORE_PATTERNS Set ignored patterns for indexer to skip.
118
115
OPENGROK_IGNORE_PATTERNS="-i dummy"
119
116
OPENGROK_IGNORE_PATTERNS="-i f:dummy"
120
117
OPENGROK_IGNORE_PATTERNS="-i d:dummy"
121
118
Multiple entries can be joined together:
122
119
"-i dummy -i d:tmp -i f:dummy"
123
120
- OPENGROK_SCAN_REPOS Disable Scan for repositories (*)
124
- - OPENGROK_SCAN_DEPTH how deep should scanning for repos go
125
- (by default 3 directories from SRC_ROOT)
121
+ - OPENGROK_SCAN_DEPTH How deep should scanning for repos go
122
+ (by default 3 directories from SRC_ROOT)
126
123
- OPENGROK_WEBAPP_CFGADDR Web app address to send configuration to
127
- (use "none" to avoid sending it to web app)
124
+ (use "none" to avoid sending it to web app)
128
125
- OPENGROK_WEBAPP_CONTEXT Context URL of the OpenGrok webapp
129
- (by default /source)
130
- - FULL reindex is needed once this is used
131
- (old already indexed files won't be refreshed)
132
- - OPENGROK_WPREFIX Disable wildcard prefix search query
133
- support (*)
126
+ (by default /source). FULL reindex is needed
127
+ once this is used (old already indexed files
128
+ won't be refreshed)
129
+ - OPENGROK_WPREFIX Disable wildcard prefix search query support (*)
134
130
- OPENGROK_TAG Enable parsing of revision tags into the History
135
- view
131
+ view
136
132
- OPENGROK_READ_XML_CONFIGURATION file with read only configuration
137
133
- temporary workaround for bug # 327
138
134
- OPENGROK_FLUSH_RAM_BUFFER_SIZE="-m 16" - set RAM buffer size for flushing,
139
- default is 16MB per thread, you might try to
140
- increase it to 256MB, but do increase JVM to
141
- 4/8/16GB ! Lucene defaults to 8 threads.
142
- Increase JVM memory as noted using JAVA_OPTS
135
+ default is 16MB per thread, you might try to
136
+ increase it to 256MB, but do increase JVM to
137
+ 4/8/16GB ! Lucene defaults to 8 threads.
138
+ Increase JVM memory as noted using JAVA_OPTS
143
139
- OPENGROK_PARALLELISM Default is 0, meaning that parallelism is
144
140
determined from available processors.
145
141
- OPENGROK_LOGGER_CONFIG_PATH Set path to custom logging.properties file.
146
- - OPENGROK_SUBVERSION_USERNAME name of the user that should be used for
147
- fetching the history from subversion
148
- - OPENGROK_SUBVERSION_PASSWORD password of the user that should be used for
149
- fetching the history from subversion
150
- - OPENGROK_PROFILER Pause to await user input for profiling.
142
+ - OPENGROK_SUBVERSION_USERNAME Name of the user that should be used for
143
+ fetching the history from subversion
144
+ - OPENGROK_SUBVERSION_PASSWORD Password of the user that should be used for
145
+ fetching the history from subversion
146
+ - OPENGROK_PROFILER Pause to await user input for profiling. (*)
151
147
152
148
Notes:
153
149
(*) Any Non-Empty String will enable these options
150
+ (^) on|true|1 are synonyms, as are off|false|0
154
151
155
152
Supported Operating Systems:
156
153
- Solaris 11 (SunOS 5.11)
@@ -309,9 +306,8 @@ DefaultInstanceConfiguration()
309
306
# OPTIONAL: Enable Projects
310
307
# (Every directory in SRC_ROOT is considered a separate project)
311
308
OPENGROK_ENABLE_PROJECTS=" ${OPENGROK_ENABLE_PROJECTS:- true} "
312
- case $OPENGROK_ENABLE_PROJECTS in
313
- true) ENABLE_PROJECTS=" -P" ;;
314
- false) ENABLE_PROJECTS=" " ;;
309
+ case " $OPENGROK_ENABLE_PROJECTS " in
310
+ off|false|0) ENABLE_PROJECTS=" " ;;
315
311
* ) ENABLE_PROJECTS=" -P" ;;
316
312
esac
317
313
@@ -322,24 +318,20 @@ DefaultInstanceConfiguration()
322
318
SCAN_FOR_REPOSITORY=" "
323
319
fi
324
320
325
- # OPTIONAL: Disable remote repository support (CVS or SVN) [on by default]
326
- GENERATE_HISTORY=" -r on"
327
- if [ -n " ${OPENGROK_GENERATE_HISTORY} " ]
328
- then
329
- GENERATE_HISTORY=" -r ${OPENGROK_GENERATE_HISTORY} "
330
- fi
331
-
332
- if [ " $OPENGROK_GENERATE_HISTORY " != " off" ]
333
- then
334
- GENERATE_HISTORY=" ${GENERATE_HISTORY} -H"
335
- fi
321
+ # OPTIONAL: remote repository support (CVS or SVN) [on by default]
322
+ OPENGROK_GENERATE_HISTORY=" ${OPENGROK_GENERATE_HISTORY:- on} "
323
+ case " $OPENGROK_GENERATE_HISTORY " in
324
+ off|false|0) GENERATE_HISTORY=" -r off" ;;
325
+ on|true|1) GENERATE_HISTORY=" -r on -H" ;;
326
+ * ) GENERATE_HISTORY=" -r $OPENGROK_GENERATE_HISTORY -H" ;;
327
+ esac
336
328
337
- if [ " $OPENGROK_RENAMED_FILES_HISTORY " != " on " ]
338
- then
339
- RENAMED_FILES_HISTORY= " --renamedHistory off "
340
- else
341
- RENAMED_FILES_HISTORY=" --renamedHistory on "
342
- fi
329
+ # OPTIONAL: Detect historical renamings if supported [off by default ]
330
+ OPENGROK_RENAMED_FILES_HISTORY= " ${OPENGROK_RENAMED_FILES_HISTORY :- off} "
331
+ case " $OPENGROK_RENAMED_FILES_HISTORY " in
332
+ on|true|1) RENAMED_FILES_HISTORY= " --renamedHistory on " ;;
333
+ * ) RENAMED_FILES_HISTORY=" --renamedHistory off " ;;
334
+ esac
343
335
344
336
# OPTIONAL: override depth of scanning for repositories
345
337
if [ -n " ${OPENGROK_SCAN_DEPTH} " ]
0 commit comments