Several projects with OpenGrok

I'm just wondering what is the best way to configure and configure OpenGrok for multiple projects, for example. through one page and drop-down list.

Although the documentation for one project is quite simple, the instructions for setting up a multi-project environment are not very clear to me.

+3
source share
3 answers

Each directory in the SRC_ROOT directory is one project. Thus, your directory structure should look something like this:

/opengrok
|-- bin
|-- data
`-- source
   |--project1
   |--project2
   `--project3

Then update your index, at this point the configuration.xml file will be updated, and each directory under SRC_ROOT (or opengrok / source) will be considered a project.

+6
source

, by OPENGROK_INSTANCE_BASE (:/var/opengrok) 'src' . - , :

cd /var/opengrok/src
ln -s project1 <absolute path of project1>
ln -s project2 <absolute path of project2>
....

, 'OpenGrok index'

+1

I am in the windows and better able to deal with the situation, create a consolidated folder d:\opengroksrcthat contains all my scattered source directories as directory transitions

Example. I have a project in d: \ gitsrc and another project in d: \ hacksrc. I created a folder named d: \ opengroksrc

d:\opengroksrc '-gitsrc => hardlink to d:\gitsrc '-hacksrc => hardlink to d:\hacksrc
mklink /j d:\opengroksrc\gitsrc d:\gitsrc can be used to create a connection for a directory in windows

and in mine web.xmlI point out that my source actually comes fromd:\opengroksrc

<context-param> <param-name>SRC_ROOT</param-name> <param-value>D:\opengroksrc\</param-value> </context-param>

And finally, for indexing java -jar E:\opengrok\lib\opengrok.jar -a on -t 4 -W E:\opengrok\configuration.xml -c C:\Windows\ctags.exe -P -S -v -s D:\opengroksrc -d E:\opengrok\grokdata -I *.cs -I *.c -I *.cpp -I *.h -I *.xml

+1
source

Source: https://habr.com/ru/post/1720429/


All Articles