org.objectweb.util.ant

Class DirectoryScannerHelper

public class DirectoryScannerHelper extends Object

This tool class helps the use of DirectoryScanner.

Author: S.Chassande-Barrioz

Method Summary
static ListgetSelectedDirectories(DirectoryScanner ds, Project project)
Extract selected directories from a matching task.
static String[]getSelectedDirectoriesAsString(DirectoryScanner ds, Project project)
Extract selected directories from a matching task.
static ListgetSelectedFiles(DirectoryScanner ds, Project project)
Extract selected files from a matching task.
static String[]getSelectedFilesAsString(DirectoryScanner ds, Project project)
Extract selected files from a matching task.

Method Detail

getSelectedDirectories

public static List getSelectedDirectories(DirectoryScanner ds, Project project)
Extract selected directories from a matching task.

Parameters: mt is the matching task root is the file descriptor of the root directory

Returns: a collection of String corresponding to selected directories

getSelectedDirectoriesAsString

public static String[] getSelectedDirectoriesAsString(DirectoryScanner ds, Project project)
Extract selected directories from a matching task.

Parameters: mt is the matching task root is the file descriptor of the root directory

Returns: an array of String corresponding to selected directories

getSelectedFiles

public static List getSelectedFiles(DirectoryScanner ds, Project project)
Extract selected files from a matching task.

Parameters: mt is the matching task root is the file descriptor of the root directory

Returns: a collection of String corresponding to selected files

getSelectedFilesAsString

public static String[] getSelectedFilesAsString(DirectoryScanner ds, Project project)
Extract selected files from a matching task.

Parameters: mt is the matching task root is the file descriptor of the root directory

Returns: an array of String corresponding to selected files