File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,9 @@ Supported Environment Variables for configuring the default setup:
111
111
- OPENGROK_ENABLE_PROJECTS Enable projects, where every directory in
112
112
SRC_ROOT is considered a separate project.
113
113
on|off (default on) (^)
114
+ - OPENGROK_DEFAULT_PROJECTS List of projects (relative to source root,
115
+ starting with slash) separated with comma to be
116
+ selected by default in the UI.
114
117
- OPENGROK_IGNORE_PATTERNS Set ignored patterns for indexer to skip.
115
118
OPENGROK_IGNORE_PATTERNS="-i dummy"
116
119
OPENGROK_IGNORE_PATTERNS="-i f:dummy"
@@ -311,6 +314,15 @@ DefaultInstanceConfiguration()
311
314
* ) ENABLE_PROJECTS=" -P" ;;
312
315
esac
313
316
317
+ if [ -n " ${ENABLE_PROJECTS} " ]
318
+ then
319
+ DEFAULT_PROJECTS=" "
320
+ for proj in $( IFS=" ," ; echo ${OPENGROK_DEFAULT_PROJECTS} )
321
+ do
322
+ DEFAULT_PROJECTS=" -p $proj ${DEFAULT_PROJECTS} "
323
+ done
324
+ fi
325
+
314
326
# OPTIONAL: Scanning Options (for Mercurial repositories)
315
327
SCAN_FOR_REPOSITORY=" -S"
316
328
if [ -n " ${OPENGROK_SCAN_REPOS} " ]
@@ -883,6 +895,7 @@ StdInvocation()
883
895
-W ${XML_CONFIGURATION} \
884
896
${SCAN_FOR_REPOSITORY} \
885
897
${ENABLE_PROJECTS} \
898
+ ${DEFAULT_PROJECTS} \
886
899
-s " ${SRC_ROOT} " \
887
900
-d " ${DATA_ROOT} " \
888
901
" ${@ } "
You can’t perform that action at this time.
0 commit comments