CommandFileParser

public class CommandFileParser
extends Object

java.lang.Object
com.android.tradefed.command.CommandFileParser


包含命令行的文件的解析器。

給定文件的語法應為一系列行。每行都是一條命令;也就是說,配置及其選項:

   [options] config-name
   [options] config-name2
   ...
 

概括

嵌套類

class CommandFileParser.CommandLine

公共建設者

CommandFileParser ()

公開方法

getIncludedFiles ()

返回最後解析的命令文件中包含的命令文件。

parseFile (File file)

解析file包含的命令,並根據需要進行宏擴展

公共建設者

CommandFileParser

public CommandFileParser ()

公開方法

getIncludedFiles

public  getIncludedFiles ()

返回最後解析的命令文件中包含的命令文件。

退貨

parseFile

public  parseFile (File file)

解析file包含的命令,並根據需要進行宏擴展

參數
file File :要解析的ERROR(/File)

退貨
解析命令列表

投擲
如果無法讀取文件
ConfigurationException如果無法解析文件的內容