cyvis.cli.ant
Class AntTaskUtil

java.lang.Object
  extended by cyvis.cli.ant.AntTaskUtil

public class AntTaskUtil
extends Object

Ant Task Util is a util class that is used by the CyvisTask class. Its has util functions that help in getting the list of valid files for metrics extraction from the fileset elements. Its also generates all the reports generated by the user.


Constructor Summary
AntTaskUtil()
           
 
Method Summary
static void generateReports(ArrayList<CyvisTask.Report> reportSet, String home)
          Generates the reports as specified in the report object.
static ArrayList<MetricSource> getValidFiles(String fileNames, String classPath)
          Gets all the valid files to process from the fileNames String in the class path specified.
static void setVerbose(boolean verbose)
          Sets the verbose on and off
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntTaskUtil

public AntTaskUtil()
Method Detail

getValidFiles

public static ArrayList<MetricSource> getValidFiles(String fileNames,
                                                    String classPath)
Gets all the valid files to process from the fileNames String in the class path specified.

Parameters:
fileNames - The list of files in a fileset seperated by commas.
classPath - The path where the files are located.
Returns:
an arraylist containing all valid file names.

generateReports

public static void generateReports(ArrayList<CyvisTask.Report> reportSet,
                                   String home)
Generates the reports as specified in the report object.

Parameters:
reportSet - An arraylist of Report objects.
home - The cyvis home directory. Useful to get a reference to the xsl file to generate html reports.

setVerbose

public static void setVerbose(boolean verbose)
Sets the verbose on and off

Parameters:
verbose - boolean indicating to switch verbose on and off