Package com.android.builder.dexing
Class ClassFileInputs
java.lang.Object
com.android.builder.dexing.ClassFileInputs
Helper methods for creating
ClassFileInput instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassFileInputCreates aClassFileInputby analyzing the specified root path.
-
Method Details
-
fromPath
Creates aClassFileInputby analyzing the specified root path. It supports discovery of .class files in directories and jar files, while omitting the ones that do not satisfy the specified predicate.In case the path ends with .jar, all .class files in in will be kept and added to the
ClassFileInputobject that is created.Otherwise, the root path will be processed as a directory, and all .class files in it will be processed.
- Parameters:
rootPath- root path to analyze, jar or a directory- Returns:
- input
ClassFileInputthat provides a list of .class files to process
-