ClasspathLauncherUtil

public class ClasspathLauncherUtil
extends Object

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


一个用于处理与启动测试相关的方法的辅助类。

摘要

公共构造函数

ClasspathLauncherUtil()

公共方法

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

列出要包含在类路径中的所有 jar

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

如果给定的文件名与我们想要从 类路径中排除的任何文件匹配,则返回 true。

公共构造函数

ClasspathLauncherUtil

public ClasspathLauncherUtil ()

公共方法

getJars

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

列出要包含在类路径中的所有 jar

参数
workingDir File:用于搜索 jar 的目录

excludedPatterns List:要从类路径中排除的 jar 的模式

返回
List<File> 要包含在类路径中的所有文件的列表

抛出
java.io.IOException
IOException

matchExcludedFilesInClasspath

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

如果给定的文件名与我们想要从 类路径中排除的任何文件匹配,则返回 true。

参数
excludedPatterns List

fileName String

返回值
boolean