powershell - How to dynamically set ProjectVersion with Sonar-Runner.bat -
In order to use the sonar-runner, by default, there is a way to manually update the version of the project without the sonar update.
Text "project.properties file every time? (Note: This is for non-maternal NAT MVC app)
An environment set set was trying to parameter the properties that are automatically referred
Sonar- Added to the runner / h "block" = <% p>
Blockquote>Modified sonar-project. Property
sonar.projectVersion =% HG_LOCAL_REV% # Do not want to update this manually
Great if we Project Werson can pass as a parameter for sonar-runner.
You can remove "sonar.projectVersion" completely from sonar-project.properties, and Instead of launching sonar-runner, pass the value as a command line argument:
Sonar -Runner- Dsonar.projectVersion = "something"