saker.build Documentation TaskDoc JavaDoc Packages
public interface TaskDirectoryPathContext
Container providing access to the base directory paths for a task during build execution.
Methods
public SakerPath
Gets the path of the build directory for the associated task.
public SakerPath
Gets the path of the working directory for the associated task.
Gets the path of the build directory for the associated task.

The returned path is the absolute execution path to the build directory of the task. This is affected by the task execution parameters. The result may be null, if there's no build directory configured for the task or build execution.

The path is the same as TaskDirectoryContext.getTaskBuildDirectory().getSakerPath() would return.

The absolute path of the build directory or null if none.
Gets the path of the working directory for the associated task.

The returned path is the absolute execution path to the working directory of the task. This is affected by the task execution parameters.

The path is the same as TaskDirectoryContext.getTaskWorkingDirectory().getSakerPath() would return.

It can be used to resolve relative user arguments against it without actually querying the SakerDirectory instance.

The absolute path of the working directory.