]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Sonar runner: move assembly sources in src/main/assembly
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 9 Feb 2011 09:33:58 +0000 (09:33 +0000)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 9 Feb 2011 09:33:58 +0000 (09:33 +0000)
assembly.xml [new file with mode: 0644]
pom.xml
src/bin/sonar-runner [deleted file]
src/bin/sonar-runner.bat [deleted file]
src/conf/sonar-runner.properties [deleted file]
src/main/assembly/assembly.xml [deleted file]
src/main/assembly/bin/sonar-runner [new file with mode: 0755]
src/main/assembly/bin/sonar-runner.bat [new file with mode: 0644]
src/main/assembly/conf/sonar-runner.properties [new file with mode: 0644]

diff --git a/assembly.xml b/assembly.xml
new file mode 100644 (file)
index 0000000..b451abb
--- /dev/null
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly>
+  <id>bin</id>
+  <formats>
+    <format>zip</format>
+  </formats>
+  <includeBaseDirectory>true</includeBaseDirectory>
+  <dependencySets>
+    <dependencySet>
+      <useProjectArtifact>true</useProjectArtifact>
+      <outputDirectory>lib</outputDirectory>
+      <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
+      <fileMode>0644</fileMode>
+    </dependencySet>
+  </dependencySets>
+  <fileSets>
+    <fileSet>
+      <directory>src/main/assembly/bin</directory>
+      <outputDirectory>bin</outputDirectory>
+      <includes>
+        <include>sonar-runner.bat</include>
+      </includes>
+      <lineEnding>dos</lineEnding>
+    </fileSet>
+    <fileSet>
+      <directory>src/main/assembly/bin</directory>
+      <outputDirectory>bin</outputDirectory>
+      <includes>
+        <include>sonar-runner</include>
+      </includes>
+      <lineEnding>unix</lineEnding>
+      <fileMode>0755</fileMode>
+    </fileSet>
+    <fileSet>
+      <directory>src/main/assembly/conf</directory>
+      <outputDirectory>conf</outputDirectory>
+      <fileMode>0644</fileMode>
+    </fileSet>
+  </fileSets>
+</assembly>
diff --git a/pom.xml b/pom.xml
index 69673598cfd69f0ad8ec89ee3fbced9117865773..bc2f33a61cc3e0508b94e6c5a337180acffef83f 100644 (file)
--- a/pom.xml
+++ b/pom.xml
             <configuration>
               <appendAssemblyId>false</appendAssemblyId>
               <descriptors>
-                <descriptor>${basedir}/src/main/assembly/assembly.xml</descriptor>
+                <descriptor>${basedir}/assembly.xml</descriptor>
               </descriptors>
             </configuration>
           </execution>
diff --git a/src/bin/sonar-runner b/src/bin/sonar-runner
deleted file mode 100755 (executable)
index af95fd5..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-#
-# Sonar Runner Startup Script for Unix
-#
-
-if [ -z "$SONAR_RUNNER_HOME" ] ; then
-  PRG="$0"
-
-  SONAR_RUNNER_HOME=`dirname "$PRG"`/..
-
-  # make it fully qualified
-  SONAR_RUNNER_HOME=`cd "$SONAR_RUNNER_HOME" && pwd`
-fi
-
-JAVA_CMD="`which java`"
-JAVA_CLASSPATH="${SONAR_RUNNER_HOME}"/lib/sonar-runner.jar:"${SONAR_RUNNER_HOME}"/lib/sonar-batch-bootstrapper.jar
-
-#echo "Info: Using sonar-runner at $SONAR_RUNNER_HOME"
-#echo "Info: Using java at $JAVACMD"
-#echo "Info: Using classpath $JAVACLASSPATH"
-
-exec "$JAVA_CMD" \
-  -classpath $JAVA_CLASSPATH \
-  "-Drunner.home=${SONAR_RUNNER_HOME}" \
-  org.sonar.runner.Main "$@"
diff --git a/src/bin/sonar-runner.bat b/src/bin/sonar-runner.bat
deleted file mode 100644 (file)
index 45bca45..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-@REM Sonar Runner Startup Script for Windows
-
-@echo off
-
-"%JAVA_HOME%\bin\java.exe" -classpath "%SONAR_RUNNER_HOME%\lib\sonar-runner.jar";"%SONAR_RUNNER_HOME%\lib\sonar-batch-bootstrapper.jar" "-Drunner.home=%SONAR_RUNNER_HOME%" org.sonar.runner.Main %*
diff --git a/src/conf/sonar-runner.properties b/src/conf/sonar-runner.properties
deleted file mode 100644 (file)
index 5f01622..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#----- Default directory layout
-sources=src/main/java
-tests=src/test/java
-binaries=target/classes
-
-sonar.sourceEncoding=UTF-8
-
-#----- Default Sonar server
-#sonar.host.url=http://localhost:9000
-
-#----- PostgreSQL
-#sonar.jdbc.url=jdbc:postgresql://localhost/sonar
-#sonar.jdbc.driver=org.postgresql.Driver
-
-#----- MySQL
-#sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8
-#sonar.jdbc.driver=com.mysql.jdbc.Driver
-
-#----- Oracle
-#sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE
-#sonar.jdbc.driver=oracle.jdbc.driver.OracleDriver
-
-#----- Global database settings
-#sonar.jdbc.username=sonar
-#sonar.jdbc.password=sonar
diff --git a/src/main/assembly/assembly.xml b/src/main/assembly/assembly.xml
deleted file mode 100644 (file)
index 0419764..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<assembly>
-  <id>bin</id>
-  <formats>
-    <format>zip</format>
-  </formats>
-  <includeBaseDirectory>true</includeBaseDirectory>
-  <dependencySets>
-    <dependencySet>
-      <useProjectArtifact>true</useProjectArtifact>
-      <outputDirectory>lib</outputDirectory>
-      <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
-      <fileMode>0644</fileMode>
-    </dependencySet>
-  </dependencySets>
-  <fileSets>
-    <fileSet>
-      <directory>src/bin</directory>
-      <outputDirectory>bin</outputDirectory>
-      <includes>
-        <include>sonar-runner.bat</include>
-      </includes>
-      <lineEnding>dos</lineEnding>
-    </fileSet>
-    <fileSet>
-      <directory>src/bin</directory>
-      <outputDirectory>bin</outputDirectory>
-      <includes>
-        <include>sonar-runner</include>
-      </includes>
-      <lineEnding>unix</lineEnding>
-      <fileMode>0755</fileMode>
-    </fileSet>
-    <fileSet>
-      <directory>src/conf</directory>
-      <outputDirectory>conf</outputDirectory>
-      <fileMode>0644</fileMode>
-    </fileSet>
-  </fileSets>
-</assembly>
diff --git a/src/main/assembly/bin/sonar-runner b/src/main/assembly/bin/sonar-runner
new file mode 100755 (executable)
index 0000000..af95fd5
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# Sonar Runner Startup Script for Unix
+#
+
+if [ -z "$SONAR_RUNNER_HOME" ] ; then
+  PRG="$0"
+
+  SONAR_RUNNER_HOME=`dirname "$PRG"`/..
+
+  # make it fully qualified
+  SONAR_RUNNER_HOME=`cd "$SONAR_RUNNER_HOME" && pwd`
+fi
+
+JAVA_CMD="`which java`"
+JAVA_CLASSPATH="${SONAR_RUNNER_HOME}"/lib/sonar-runner.jar:"${SONAR_RUNNER_HOME}"/lib/sonar-batch-bootstrapper.jar
+
+#echo "Info: Using sonar-runner at $SONAR_RUNNER_HOME"
+#echo "Info: Using java at $JAVACMD"
+#echo "Info: Using classpath $JAVACLASSPATH"
+
+exec "$JAVA_CMD" \
+  -classpath $JAVA_CLASSPATH \
+  "-Drunner.home=${SONAR_RUNNER_HOME}" \
+  org.sonar.runner.Main "$@"
diff --git a/src/main/assembly/bin/sonar-runner.bat b/src/main/assembly/bin/sonar-runner.bat
new file mode 100644 (file)
index 0000000..45bca45
--- /dev/null
@@ -0,0 +1,5 @@
+@REM Sonar Runner Startup Script for Windows
+
+@echo off
+
+"%JAVA_HOME%\bin\java.exe" -classpath "%SONAR_RUNNER_HOME%\lib\sonar-runner.jar";"%SONAR_RUNNER_HOME%\lib\sonar-batch-bootstrapper.jar" "-Drunner.home=%SONAR_RUNNER_HOME%" org.sonar.runner.Main %*
diff --git a/src/main/assembly/conf/sonar-runner.properties b/src/main/assembly/conf/sonar-runner.properties
new file mode 100644 (file)
index 0000000..5f01622
--- /dev/null
@@ -0,0 +1,25 @@
+#----- Default directory layout
+sources=src/main/java
+tests=src/test/java
+binaries=target/classes
+
+sonar.sourceEncoding=UTF-8
+
+#----- Default Sonar server
+#sonar.host.url=http://localhost:9000
+
+#----- PostgreSQL
+#sonar.jdbc.url=jdbc:postgresql://localhost/sonar
+#sonar.jdbc.driver=org.postgresql.Driver
+
+#----- MySQL
+#sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8
+#sonar.jdbc.driver=com.mysql.jdbc.Driver
+
+#----- Oracle
+#sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE
+#sonar.jdbc.driver=oracle.jdbc.driver.OracleDriver
+
+#----- Global database settings
+#sonar.jdbc.username=sonar
+#sonar.jdbc.password=sonar