You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

sonarqube.xml 969 B

1234567891011121314151617181920212223242526
  1. <project default="sonar" basedir=".">
  2. <!-- gets overridden by the jenkins job -->
  3. <property name="sonar.host.url" value="http://localhost:9000" />
  4. <!-- source SonarQube project properties -->
  5. <property file="sonar-project.properties"/>
  6. <property name="downloads" location="build/downloads"/>
  7. <property name="sonarqube-ant-task-jar" location="${downloads}/sonarqube-ant-task.jar"/>
  8. <property name="sonarqube-ant-task-url"
  9. value="https://binaries.sonarsource.com/Distribution/sonarqube-ant-task/sonarqube-ant-task-2.5.jar"/>
  10. <target name="download">
  11. <mkdir dir="${downloads}"/>
  12. <get dest="${sonarqube-ant-task-jar}" src="${sonarqube-ant-task-url}"/>
  13. </target>
  14. <target name="sonar" depends="download">
  15. <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml">
  16. <classpath path="${sonarqube-ant-task-jar}" />
  17. </taskdef>
  18. <sonar:sonar xmlns:sonar="antlib:org.sonar.ant"/>
  19. </target>
  20. </project>