Skip to content

Commit

Permalink
Update README.md and rename dev.sh bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
RadoBuransky committed May 8, 2015
1 parent 5fb40a3 commit 2f7cad3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
9 changes: 1 addition & 8 deletions plugin/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
# Sonar Scoverage Plugin source code #

Useful bash script for plugin development to stop Sonar server, build plugin, copy it to Sonar plugin
directory and start Sonar server again:

<SONAR_INSTALL_DIR>/bin/linux-x86-64/sonar.sh stop

mvn install
cp ./target/sonar-scoverage-plugin-1.0-SNAPSHOT.jar <SONAR_INSTALL_DIR>/extensions/plugins/

<SONAR_INSTALL_DIR>/bin/linux-x86-64/sonar.sh start
directory and start Sonar server again is in the `dev.sh` file.
19 changes: 19 additions & 0 deletions plugin/dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

SONAR_HOME=~/bin/sonarqube-4.2
PLUGIN_VERSION=4.2.0

mvn install

PLUGIN_FILE="./target/sonar-scoverage-plugin-$PLUGIN_VERSION.jar"
if [ ! -f $PLUGIN_FILE ]; then
echo "Plugin jar not found! [$PLUGIN_FILE]"
exit 1
fi

$SONAR_HOME/bin/linux-x86-64/sonar.sh stop

rm $SONAR_HOME/extensions/plugins/sonar-scoverage-plugin-*
cp $PLUGIN_FILE $SONAR_HOME/extensions/plugins/sonar-scoverage-plugin-$PLUGIN_VERSION.jar

$SONAR_HOME/bin/linux-x86-64/sonar.sh start

0 comments on commit 2f7cad3

Please sign in to comment.