Class AbstractTask

  • All Implemented Interfaces:
    Task
    Direct Known Subclasses:
    AbstractBomTask

    public abstract class AbstractTask
    extends Object
    implements Task

    Abstract AbstractTask class.

    • Constructor Detail

      • AbstractTask

        public AbstractTask()
    • Method Detail

      • getSearchPath

        public final List<Path> getSearchPath()

        getSearchPath.

        Returns:
        a List object.
      • hasSearchPath

        public final boolean hasSearchPath()

        hasSearchPath.

        Returns:
        a boolean.
      • setSearchPaths

        public final void setSearchPaths​(List<Path> _paths)
        Sets one or more file systems Paths that contain application code and/or dependencies.
        Specified by:
        setSearchPaths in interface Task
        Parameters:
        _paths - a List object.
      • isGoalClient

        public final boolean isGoalClient​(GoalClient _client)
        Returns true if the GoalClient of this task is equal to the given client, false otherwise.
        Parameters:
        _client - a GoalClient object.
        Returns:
        a boolean.
      • isOneOfGoalClients

        public final boolean isOneOfGoalClients​(List<GoalClient> clients)

        isOneOfGoalClients.

        Parameters:
        clients - a List object.
        Returns:
        a boolean.
      • getApplication

        public final Application getApplication()

        Getter for the field application.

        Returns:
        a Application object.
      • getKnownDependencies

        public Map<Path,​Dependency> getKnownDependencies()

        Getter for the field knownDependencies.

        Returns:
        a Map object.
      • setKnownDependencies

        public void setKnownDependencies​(Map<Path,​Dependency> _dependencies)
        Provides the task with application Dependencys that are already known before task execution. This information may come from build systems or the like, and typically facilitates the task execution.
        Specified by:
        setKnownDependencies in interface Task
        Parameters:
        _dependencies - a Map object.