Search in sources :

Example 11 with TaskProperty

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;
}
Also used : TaskProperty(com.thoughtworks.go.domain.TaskProperty) ArrayList(java.util.ArrayList)

Aggregations

TaskProperty (com.thoughtworks.go.domain.TaskProperty)11 Configuration (com.thoughtworks.go.domain.config.Configuration)7 PluginConfiguration (com.thoughtworks.go.domain.config.PluginConfiguration)7 TaskPreference (com.thoughtworks.go.plugin.access.pluggabletask.TaskPreference)7 Test (org.junit.Test)7 TaskConfig (com.thoughtworks.go.plugin.api.task.TaskConfig)6 ArrayList (java.util.ArrayList)3 AntTask (com.thoughtworks.go.config.AntTask)2 Task (com.thoughtworks.go.plugin.api.task.Task)2 TaskView (com.thoughtworks.go.plugin.api.task.TaskView)2 ConfigurationProperty (com.thoughtworks.go.domain.config.ConfigurationProperty)1 Property (com.thoughtworks.go.plugin.api.config.Property)1 TaskConfigProperty (com.thoughtworks.go.plugin.api.task.TaskConfigProperty)1