Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: SONAR-RUNNER-1.3
-
Component/s: Sonar Runner
-
Number of attachments :
Description
Since the sonar-runner.bat launcher for windows:
- Does not allow us to forward more than one Sonar options in command-line argument.
- Forces us to call it from within the same directory where stands the sonar-project.properties file.
- Does not allow us to forward the verbose mode in command-line argument.
I've decided to develop a sonar-runner-advanced.bat which answers to all those needs. I think it may worth to replace your sonar-runner.bat content with this new launcher script content.
Hope this help.
—
Thomas PIERRAIN (thomas@pierrain.net)
--------------------------------------------------------
FYI: Here is the man of the sonar-runner-advanced.bat
--------------------------
C:\>sonar-runner-advanced /h
Advanced Sonar Runner Startup Script for Windows v1.1
Allows you to forward all the sonar options you want through the command-line arguments,
but also to launch your sonar analysis wherever you want (i.e. you are not forced to call
it within the directory where your project stands).
Last but not least, the advanced sonar runner will allow you to enable the verbose mode
for your sonar analysis.
Usage: sonar-runner-advanced [/v] [/p project-home-dir] [/o sonar-option1 sonar-option2 ...]
Options:
/v Enable the verbose mode
/p project-home-dir Set the directory of the project to analyse (should not have a backslash at the end).
The current directory will be used if no value is specified.
e.g. /p "C:\Dev\WorkingDir\trunk\MyProject\Src"
/o sonar-options Set the sonar options for the sonnar runner to be used
e.g. /o "-Dsonar.projectVersion=0.18" "-Dsonar.jdbc.driver=org.apache.derby.jdbc.ClientDriver"
Example:
sonar-runner-advanced /v /p "C:\Dev\WorkingDir\trunk\MyProject\Src" /o "-Dsonar.projectVersion=1.3" "-Dsonar.jdbc.driver=org.apach
e.derby.jdbc.ClientDriver" "-Dsonar.jdbc.url=jdbc:derby://MySonarServerName:1527/sonar;create=true" "-Dsonar.jdbc.username=sonar"
"-Dsonar.jdbc.password=sonar" "-Dsonar.host.url=http://MySonarServerName:9000/"
C:\>
For the record - discussion in ML : http://markmail.org/message/dltpfqeyt7u7xabf