]>
git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.api.slc/src/org/argeo/api/slc/execution/ExecutionResources.java
1 package org
.argeo
.api
.slc
.execution
;
4 import java
.nio
.file
.Path
;
6 /** Provides write access to resources during execution */
7 public interface ExecutionResources
{
8 /** The base directory where this execution can write */
9 public File
getWritableBaseDir();
11 /** Allocates a local file in the writable area and return it as a resource. */
12 public Path
getWritableResource(String relativePath
);
15 * Allocates a local file in the writable area and return it as a fully
18 public String
getWritableOsPath(String relativePath
);
21 * Allocates a local file in the writable area and return it as a {@link File}.
23 public File
getWritableOsFile(String relativePath
);
26 * Returns the resource as a file path. If the resource is not writable it is
27 * copied as a file in the writable area and the path to this local file is
30 public String
getAsOsPath(Path resource
, Boolean overwrite
);