Home | History | Annotate | Download | only in commands

Lines Matching defs:string

47     private final List<String> args;
48 private final Map<String, String> env;
55 public Command(String... args) {
59 public Command(List<String> args) {
60 this.args = new ArrayList<String>(args);
69 this.args = new ArrayList<String>(builder.args);
75 String string = toString();
76 if (string.length() > builder.maxLength) {
78 + " exceeded by: " + string);
115 public List<String> gatherOutput()
123 List<String> outputLines = new ArrayList<String>();
124 String outputLine;
137 for (String line : outputLines) {
146 public List<String> execute() {
164 public List<String> executeWithTimeout(int timeoutSeconds)
187 public Future<List<String>> executeLater() {
189 Future<List<String>> result = executor.submit(new Callable<List<String>>() {
190 public List<String> call() throws Exception {
220 @Override public String toString() {
221 String envString = !env.isEmpty() ? (Strings.join(env.entrySet(), " ") + " ") : "";
226 private final List<String> args = new ArrayList<String>();
227 private final Map<String, String> env = new LinkedHashMap<String, String>();
246 public Builder args(String... args) {
250 public Builder args(Collection<String> args) {
255 public Builder env(String key, String value) {
285 public List<String> execute() {