]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionResources.java
Improve execution core
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / execution / ExecutionResources.java
index 6886a0bd129cbcb04ee40a06e215ebbbb11ed9e3..22642ceb70085545a8d1d2fcf1cde227a664f2bc 100644 (file)
@@ -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