Package org.sonarsource.scanner.ant
Class SonarQubeTaskUtils
- java.lang.Object
-
- org.sonarsource.scanner.ant.SonarQubeTaskUtils
-
public final class SonarQubeTaskUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetAntLoggerLever(org.apache.tools.ant.Project project)Workaround to get Ant logger level.static URLgetJarPath()For unknown reasonsgetClass().getProtectionDomain().getCodeSource().getLocation()doesn't work under Ant 1.7.0.static StringgetTaskVersion()Returns the version of the Ant Task
-
-
-
Method Detail
-
getJarPath
public static URL getJarPath()
For unknown reasonsgetClass().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 (seeMain):- 1 - quiet
- 2 - default
- 3 - verbose
- 4 - debug
-
getTaskVersion
public static String getTaskVersion()
Returns the version of the Ant Task- Returns:
- the version
-
-