X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2FExecutionResources.java;h=22642ceb70085545a8d1d2fcf1cde227a664f2bc;hb=31a8055cac622a55afd2668e77f00aba1d031f91;hp=6886a0bd129cbcb04ee40a06e215ebbbb11ed9e3;hpb=afe680eba2d193e550e4d0a897c1329e9bd533ca;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionResources.java b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionResources.java index 6886a0bd1..22642ceb7 100644 --- a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionResources.java +++ b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionResources.java @@ -1,11 +1,28 @@ package org.argeo.slc.core.execution; +import java.io.File; + import org.springframework.core.io.Resource; 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 Resource 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