public class CommandTool extends Object implements Tool
Tool based on a list of arguments formed by SourcePaths.
Example:
Tool compiler = new CommandTool.Builder()
.addArg(compilerPath)
.addArg("-I%s", defaultIncludeDir)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CommandTool.Builder |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<String> |
getCommandPrefix(SourcePathResolverAdapter resolver) |
com.google.common.collect.ImmutableSortedMap<String,String> |
getEnvironment(SourcePathResolverAdapter resolver) |
public com.google.common.collect.ImmutableList<String> getCommandPrefix(SourcePathResolverAdapter resolver)
getCommandPrefix in interface Toolpublic com.google.common.collect.ImmutableSortedMap<String,String> getEnvironment(SourcePathResolverAdapter resolver)
getEnvironment in interface Tool