aboutsummaryrefslogtreecommitdiffstats
path: root/fork.sh
diff options
context:
space:
mode:
authorStephane Gamard <stephane.gamard@searchbox.com>2014-07-22 10:54:30 +0200
committerStephane Gamard <stephane.gamard@searchbox.com>2014-07-23 15:34:04 +0200
commit7cee5e34d9c8df519ecd8f81d4e122fcb9460a55 (patch)
tree3dca4949f39d8b82180df677f12bb1faeb477c4f /fork.sh
parentbf3c0236036a6ef3f13223dce54db3a2cbb7781a (diff)
downloadsonarqube-7cee5e34d9c8df519ecd8f81d4e122fcb9460a55.tar.gz
sonarqube-7cee5e34d9c8df519ecd8f81d4e122fcb9460a55.zip
Added tmux output for dev logs
Diffstat (limited to 'fork.sh')
-rwxr-xr-xfork.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/fork.sh b/fork.sh
new file mode 100755
index 00000000000..f2ee7459a96
--- /dev/null
+++ b/fork.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+mvn clean install -DskipTests -Denforcer.skip=true $*
+
+if [[ "$OSTYPE" == "darwin"* ]]; then
+ OS='macosx-universal-64'
+else
+ OS='linux-x86-64'
+fi
+
+cd sonar-application/target/
+if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then
+ unzip sonarqube-*.zip
+fi
+cd sonarqube-*
+bin/$OS/sonar.sh stop
+killall -9 java
+touch logs/application.log
+touch logs/search.log
+touch logs/sonar.log
+bin/$OS/sonar.sh start
+tmux new-session "tmux split-window -v 'tail -f logs/sonar.log'; tmux split-window -h 'tail -f logs/search.log'; tail -f logs/application.log"