ClasspathLauncherUtil

public class ClasspathLauncherUtil
extends Object

java.lang.Object
   ↳ com.google.android.tradefed.util.ClasspathLauncherUtil


A helper class for methods related to launch test.

Summary

Public constructors

ClasspathLauncherUtil()

Public methods

static List<File> getJars(File workingDir, List<String> excludedPatterns)

List all the jars to be included in the classpath

static boolean matchExcludedFilesInClasspath(List<String> excludedPatterns, String fileName)

Returns true if the given file name matches any of the files we'd like to exclude from the classpath.

Public constructors

ClasspathLauncherUtil

public ClasspathLauncherUtil ()

Public methods

getJars

public static List<File> getJars (File workingDir, 
                List<String> excludedPatterns)

List all the jars to be included in the classpath

Parameters
workingDir File: Directory to search for jars

excludedPatterns List: Pattern of jars to exclude from classpath

Returns
List<File> A list of all files to be included in the classpath

Throws
java.io.IOException
IOException

matchExcludedFilesInClasspath

public static boolean matchExcludedFilesInClasspath (List<String> excludedPatterns, 
                String fileName)

Returns true if the given file name matches any of the files we'd like to exclude from the classpath.

Parameters
excludedPatterns List

fileName String

Returns
boolean