ClasspathLauncherUtil

public class ClasspathLauncherUtil
extends Object

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


คลาส Helper สำหรับเมธอดที่เกี่ยวข้องกับการทดสอบการเปิดตัว

สรุป

เครื่องมือสร้างสาธารณะ

ClasspathLauncherUtil()

เมธอดสาธารณะ

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

แสดงรายการ JAR ทั้งหมดที่จะรวมไว้ใน Classpath

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

แสดงผลเป็นจริงหากชื่อไฟล์ที่ระบุตรงกับไฟล์ใดก็ตามที่เราต้องการยกเว้นจาก classpath

เครื่องมือสร้างสาธารณะ

ClasspathLauncherUtil

public ClasspathLauncherUtil ()

เมธอดสาธารณะ

getJars

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

แสดงรายการ JAR ทั้งหมดที่จะรวมไว้ใน Classpath

พารามิเตอร์
workingDir File: ไดเรกทอรีที่จะค้นหาไฟล์ JAR

excludedPatterns List: รูปแบบของไฟล์ JAR ที่จะยกเว้นจากคลาสพาธ

การคืนสินค้า
List<File> รายการไฟล์ทั้งหมดที่จะรวมไว้ใน Classpath

ส่ง
java.io.IOException
IOException

matchExcludedFilesInClasspath

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

แสดงผลเป็นจริงหากชื่อไฟล์ที่ระบุตรงกับไฟล์ใดก็ตามที่เราต้องการยกเว้นจาก classpath

พารามิเตอร์
excludedPatterns List

fileName String

การคืนสินค้า
boolean