org.sonar.ant
Class Utils

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

public final class Utils
extends Object


Method Summary
static String convertResourceCollectionToString(org.apache.tools.ant.types.ResourceCollection c)
           
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertResourceCollectionToString

public static String convertResourceCollectionToString(org.apache.tools.ant.types.ResourceCollection c)
Since:
1.2

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):



Copyright © 2011 SonarSource. All Rights Reserved.