org.sonar.ant
Class SonarTaskUtils

java.lang.Object
  extended by org.sonar.ant.SonarTaskUtils

public final class SonarTaskUtils
extends Object


Method Summary
protected static String extractURI(String pathToClass, String path)
           
static int getAntLoggerLever(org.apache.tools.ant.Project project)
          Workaround to get Ant logger level.
static URL getJarPath()
          For unknown reasons getClass().getProtectionDomain().getCodeSource().getLocation() doesn't work under Ant 1.7.0.
static String getTaskVersion()
          Returns the version of the Ant Task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

extractURI

protected static String extractURI(String pathToClass,
                                   String path)

getAntLoggerLever

public static int getAntLoggerLever(org.apache.tools.ant.Project project)
Workaround to get Ant logger level. Possible values (see Main):


getTaskVersion

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

Returns:
the version


Copyright © 2011-2014 SonarSource. All Rights Reserved.