$ brew install tomcat
Error: tomcat-8.0.26 already installed
To install this version, first `brew unlink tomcat'
$ brew install ctags
Warning: ctags-5.8_1 already installed
$ wget -O - http://java.net/projects/opengrok/downloads/download/opengrok-0.12.1.2.tar.gz | tar xvz
--2016-01-13 10:59:44-- http://java.net/projects/opengrok/downloads/download/opengrok-0.12.1.2.tar.gz
Resolving java.net... 137.254.56.25
Connecting to java.net|137.254.56.25|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://java.net/projects/opengrok/downloads/download/opengrok-0.12.1.2.tar.gz [following]
--2016-01-13 10:59:45-- https://java.net/projects/opengrok/downloads/download/opengrok-0.12.1.2.tar.gz
Connecting to java.net|137.254.56.25|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://java.net/downloads/opengrok/opengrok-0.12.1.2.tar.gz [following]
--2016-01-13 10:59:45-- http://java.net/downloads/opengrok/opengrok-0.12.1.2.tar.gz
Connecting to java.net|137.254.56.25|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://java.net/downloads/opengrok/opengrok-0.12.1.2.tar.gz [following]
--2016-01-13 10:59:46-- https://java.net/downloads/opengrok/opengrok-0.12.1.2.tar.gz
Connecting to java.net|137.254.56.25|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14508789 (14M) [application/x-gzip]
Saving to: 'STDOUT'
- 0%[ ] 23.69K 76.7KB/s x opengrok-0.12.1.2/doc/CHANGES.txt
x opengrok-0.12.1.2/doc/LICENSE.txt
x opengrok-0.12.1.2/doc/NOTICE.txt
x opengrok-0.12.1.2/doc/README.txt
x opengrok-0.12.1.2/doc/logging.properties
x opengrok-0.12.1.2/doc/paths.tsv
x opengrok-0.12.1.2/bin/OpenGrok
- 0%[ ] 97.01K 157KB/s
- 12%[=> ] 1.69M 378KB/s eta 36s
- 15%[==> ] 2.19M 367KB/s eta 35s
x opengrok-0.12.1.2/lib/lib/jrcs.jar
- 27%[====> ] 3.74M 370KB/s eta 29s
- 41%[========> ] 5.81M 375KB/s eta 22s
- 43%[========> ] 6.06M 380KB/s eta 22s
- 44%[========> ] 6.22M 374KB/s eta 21s
- 45%[=========> ] 6.31M 374KB/s eta 21s
- 49%[=========> ] 6.83M 370KB/s eta 20s
- 100%[=====================>] 13.84M 379KB/s in 38s
2016-01-13 11:00:24 (376 KB/s) - written to stdout [14508789/14508789]
x opengrok-0.12.1.2/man/man1/opengrok.1
$ OPENGROK_TOMCAT_BASE=/usr/local/Cellar/tomcat/8.0.26//libexec opengrok-0.12.1.2/bin/OpenGrok deploy
Loading the default instance configuration ...
Installing /Users/m_fujii/opengrok-0.12.1.2/bin/../lib/source.war to /usr/local/Cellar/tomcat/8.0.26//libexec/webapps ...
Start your application server (Tomcat), if it is not already
running, or wait until it loads the just installed web application.
OpenGrok should be available on <HOST>:<PORT>/source
where HOST and PORT are configured in Tomcat.
$ catalina start
Using CATALINA_BASE: /usr/local/Cellar/tomcat/8.0.26/libexec
Using CATALINA_HOME: /usr/local/Cellar/tomcat/8.0.26/libexec
Using CATALINA_TMPDIR: /usr/local/Cellar/tomcat/8.0.26/libexec/temp
Using JRE_HOME: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
Using CLASSPATH: /usr/local/Cellar/tomcat/8.0.26/libexec/bin/bootstrap.jar:/usr/local/Cellar/tomcat/8.0.26/libexec/bin/tomcat-juli.jar
Tomcat started.
$ open http://localhost:8080/source
$ OPENGROK_TOMCAT_BASE=/usr/local/Cellar/tomcat/8.0.26//libexec opengrok-0.12.1.2/bin/OpenGrok
Using OpenGrok on Mac OS X