自 2026 年起,为了与我们的主干稳定开发模型保持一致,并确保生态系统的平台稳定性,我们将在第 2 季度和第 4 季度向 AOSP 发布源代码。如需构建 AOSP 并为其贡献代码,请使用 android-latest-release。android-latest-release 清单分支将始终引用推送到 AOSP 的最新版本。如需了解详情,请参阅 AOSP 变更。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
ClasspathLauncherUtil
public
class
ClasspathLauncherUtil
extends Object
| java.lang.Object
|
| ↳ |
com.google.android.tradefed.util.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 |
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-06-22。
[null,null,["最后更新时间 (UTC):2026-06-22。"],[],[]]