File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 47
47
# (by default 3 directories from SRC_ROOT)
48
48
# - OPENGROK_WEBAPP_CFGADDR Web app address to send configuration to
49
49
# (use "none" to avoid sending it to web app)
50
+ # - OPENGROK_WEBAPP_CONTEXT Context URL of the OpenGrok webapp
51
+ # (by default /source)
50
52
# - OPENGROK_WPREFIX Disable wildcard prefix search query
51
53
# support (*)
52
54
# - OPENGROK_DERBY if set, then indexer tries to use derby as
@@ -271,6 +273,13 @@ DefaultInstanceConfiguration()
271
273
WEBAPP_CONFIG=" -U ${WEBAPP_CONFIG_ADDRESS} "
272
274
fi
273
275
276
+ # OPTIONAL: Context URL of the OpenGrok webapp
277
+ # (default is /source)
278
+ WEBAPP_CONTEXT=" "
279
+ if [ -n " ${OPENGROK_WEBAPP_CONTEXT} " ]; then
280
+ WEBAPP_CONTEXT=" -w ${OPENGROK_WEBAPP_CONTEXT} "
281
+ fi
282
+
274
283
# OPTIONAL: JVM Options
275
284
JAVA_OPTS=" ${JAVA_OPTS:- -Xmx2048m} "
276
285
@@ -763,6 +772,7 @@ StdInvocation()
763
772
${READ_XML_CONF} \
764
773
-W ${XML_CONFIGURATION} \
765
774
${WEBAPP_CONFIG} \
775
+ ${WEBAPP_CONTEXT} \
766
776
-s ${SRC_ROOT} -d ${DATA_ROOT} \
767
777
" ${@ } "
768
778
}
You can’t perform that action at this time.
0 commit comments