CommandFileWatcher.CommandFile

static class CommandFileWatcher.CommandFile
extends Object

java.lang.Object
   ↳ com.android.tradefed.command.CommandFileWatcher.CommandFile


A simple struct to store a command file as well as its extra args

Summary

Fields

public final List<CommandFileWatcher.CommandFile> dependencies

public final List<String> extraArgs

public final File file

public final long modTime

Public constructors

CommandFileWatcher.CommandFile(File cmdFile)

Construct a CommandFile with no arguments and no dependencies

CommandFileWatcher.CommandFile(File cmdFile, List<String> extraArgs, List<File> dependencies)

Construct a CommandFile

Fields

dependencies

List<CommandFileWatcher.CommandFile> dependencies

extraArgs

List<String> extraArgs

file

File file

modTime

long modTime

Public constructors

CommandFileWatcher.CommandFile

CommandFileWatcher.CommandFile (File cmdFile)

Construct a CommandFile with no arguments and no dependencies

Parameters
cmdFile File: a File representing the command file path

CommandFileWatcher.CommandFile

CommandFileWatcher.CommandFile (File cmdFile, 
                List<String> extraArgs, 
                List<File> dependencies)

Construct a CommandFile

Parameters
cmdFile File: a File representing the command file path

extraArgs List: A List of extra arguments that should be used when the command is rerun.

dependencies List: The command files that this command file requires as transitive dependencies. A change in any of the dependencies will trigger a reload, but none of the dependencies themselves will be reloaded directly, only the main command file, cmdFile.