
bear.task.TaskExecutionContext Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 2013 Andrey Chaschev.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package bear.task;
import bear.console.AbstractConsoleCommand;
import bear.core.SessionContext;
import bear.vcs.CommandLineResult;
import com.google.common.base.Optional;
import org.joda.time.DateTime;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.List;
import static com.google.common.base.Optional.absent;
import static com.google.common.base.Optional.of;
/**
* This is a field in `Task`.
*
* executionEntries:
* - direct sub-tasks of this task (tasks which are in the body of this task (run during this task execution)
* - commands run on the level of this task
*
* Me
* executionEntries: Task, Task, Command, Task
*
* @author Andrey Chaschev [email protected]
*/
public class TaskExecutionContext extends ExecContext {
private static final Logger logger = LoggerFactory.getLogger(TaskExecutionContext.class);
// TaskExecutionEntry selfEntry;
List execEntries = new ArrayList();
public TaskResult> taskResult;
protected Task
© 2015 - 2025 Weber Informatics LLC | Privacy Policy