saker.standard Documentation TaskDoc JavaDoc Packages
public interface LocalFileLocation extends FileLocation
FileLocation that represents a file on the local file system.

The local file system is the one that the build is currently running on.

The path of the file is available using getLocalPath().

Note that using local file locations may cause tasks that are remote dispatchabel to not use build clusters, as the local files may not be accessible from the clusters.

Clients shouldn't implement this interface.

Use create(SakerPath) to construct a new instance.

Methods
public default void
Accepts a visitor and calls an appropriate visit method on it.
public static LocalFileLocation
Creates a new local file location.
public SakerPath
Gets the absolute local path of the file.
Inherited methods
public default void accept(FileLocationVisitor visitor) throws NullPointerException
Overridden from: FileLocation
Accepts a visitor and calls an appropriate visit method on it.
visitorThe visitor.
NullPointerExceptionIf the visitor is null.
Creates a new local file location.

The argument path must be absolute. The method will not check if the path is actually a valid path on the local file system.

pathThe local path of the file.
The created file location.
NullPointerExceptionIf the argument is null.
IllegalArgumentExceptionIf the argument is not absolute.
public abstract SakerPath getLocalPath()
Gets the absolute local path of the file.
The absolute local file path.