Skip to content

Commit 2f7cad3

Browse files
committed
Update README.md and rename dev.sh bash script
1 parent 5fb40a3 commit 2f7cad3

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

plugin/README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
# Sonar Scoverage Plugin source code #
22

33
Useful bash script for plugin development to stop Sonar server, build plugin, copy it to Sonar plugin
4-
directory and start Sonar server again:
5-
6-
<SONAR_INSTALL_DIR>/bin/linux-x86-64/sonar.sh stop
7-
8-
mvn install
9-
cp ./target/sonar-scoverage-plugin-1.0-SNAPSHOT.jar <SONAR_INSTALL_DIR>/extensions/plugins/
10-
11-
<SONAR_INSTALL_DIR>/bin/linux-x86-64/sonar.sh start
4+
directory and start Sonar server again is in the `dev.sh` file.

plugin/dev.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
SONAR_HOME=~/bin/sonarqube-4.2
4+
PLUGIN_VERSION=4.2.0
5+
6+
mvn install
7+
8+
PLUGIN_FILE="./target/sonar-scoverage-plugin-$PLUGIN_VERSION.jar"
9+
if [ ! -f $PLUGIN_FILE ]; then
10+
echo "Plugin jar not found! [$PLUGIN_FILE]"
11+
exit 1
12+
fi
13+
14+
$SONAR_HOME/bin/linux-x86-64/sonar.sh stop
15+
16+
rm $SONAR_HOME/extensions/plugins/sonar-scoverage-plugin-*
17+
cp $PLUGIN_FILE $SONAR_HOME/extensions/plugins/sonar-scoverage-plugin-$PLUGIN_VERSION.jar
18+
19+
$SONAR_HOME/bin/linux-x86-64/sonar.sh start

0 commit comments

Comments
 (0)