use of com.thoughtworks.go.domain.TaskProperty in project gocd by gocd.
the class ExecTask method getPropertiesForDisplay.
public List<TaskProperty> getPropertiesForDisplay() {
ArrayList<TaskProperty> taskProperties = new ArrayList<>();
taskProperties.add(new TaskProperty("COMMAND", command));
String arguments = arguments();
if (!arguments.isEmpty()) {
taskProperties.add(new TaskProperty("ARGUMENTS", arguments));
}
if (workingDirectory != null) {
taskProperties.add(new TaskProperty("WORKING_DIR", workingDirectory));
}
if (!(timeout == null || timeout.equals(NO_TIMEOUT_FOR_COMMANDLINE))) {
taskProperties.add(new TaskProperty("TIMEOUT", timeout.toString()));
}
return taskProperties;
}
Aggregations