X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.api%2Fsrc%2Forg%2Fargeo%2Fslc%2Fexecution%2FExecutionResources.java;fp=org.argeo.slc.api%2Fsrc%2Forg%2Fargeo%2Fslc%2Fexecution%2FExecutionResources.java;h=0000000000000000000000000000000000000000;hb=09c9e5093fe1353aaac344ac8a8caf2e1dcc0778;hp=9ddbca9887ff415dc90fa8732da6d205eb3b6d5b;hpb=8ff996a3380166be2ae9cf0ef0fa22c58e11746a;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionResources.java b/org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionResources.java deleted file mode 100644 index 9ddbca988..000000000 --- a/org.argeo.slc.api/src/org/argeo/slc/execution/ExecutionResources.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.argeo.slc.execution; - -import java.io.File; -import java.nio.file.Path; - -/** Provides write access to resources during execution */ -public interface ExecutionResources { - /** The base directory where this execution can write */ - public File getWritableBaseDir(); - - /** Allocates a local file in the writable area and return it as a resource. */ - public Path getWritableResource(String relativePath); - - /** - * Allocates a local file in the writable area and return it as a fully - * qualified OS path. - */ - public String getWritableOsPath(String relativePath); - - /** - * Allocates a local file in the writable area and return it as a {@link File}. - */ - public File getWritableOsFile(String relativePath); - - /** - * Returns the resource as a file path. If the resource is not writable it is - * copied as a file in the writable area and the path to this local file is - * returned. - */ - public String getAsOsPath(Path resource, Boolean overwrite); -}