Class SonarQubeTaskUtils


  • public final class SonarQubeTaskUtils
    extends Object
    • Method Detail

      • getJarPath

        public static URL getJarPath()
        For unknown reasons getClass().getProtectionDomain().getCodeSource().getLocation() doesn't work under Ant 1.7.0. So this is a workaround.
        Returns:
        Jar which contains this class
      • getAntLoggerLever

        public static int getAntLoggerLever​(org.apache.tools.ant.Project project)
        Workaround to get Ant logger level. Possible values (see Main):
        • 1 - quiet
        • 2 - default
        • 3 - verbose
        • 4 - debug
      • getTaskVersion

        public static String getTaskVersion()
        Returns the version of the Ant Task
        Returns:
        the version