Package org.testng.internal
Class PackageUtils
- java.lang.Object
-
- org.testng.internal.PackageUtils
-
public class PackageUtils extends Object
Utility class that finds all the classes in a given package. Created on Feb 24, 2006- Author:
- Cedric Beust
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addClassLoader(ClassLoader loader)
Add a class loader to the searchable loaders.static String[]
findClassesInPackage(String packageName, List<String> included, List<String> excluded)
-
-
-
Method Detail
-
addClassLoader
public static void addClassLoader(ClassLoader loader)
Add a class loader to the searchable loaders.
-
findClassesInPackage
public static String[] findClassesInPackage(String packageName, List<String> included, List<String> excluded) throws IOException
- Parameters:
packageName
- - The package nameincluded
- - The inclusion list.excluded
- - The exclusion list- Returns:
- - The list of all the classes inside this package
- Throws:
IOException
- - if there is an exception.
-
-