Most of my project properties are declared in the ant build script. I would like to also specify custom SONAR_RUNNER_OPTS and SONAR_SCANNER_OPTS and I am thinking about putting those in sonarqube properties file, that the project currently does not have (I would like to avoid command line arguments as much as possible)
So, given the fact I am using sonar ant tasks, what is the right way to supply the sonar property file to ant?
Hi,
SONAR_RUNNER_OPTS and SONAR_SCANNER_OPTS are environment variables.
Just keep the values you want to set in your propertyfile and use them in your ant script like that, before you call the sonar task: