]>
git.argeo.org Git - gpl/argeo-slc.git/blob - legacy/org.argeo.slc.spring/src/org/argeo/slc/core/execution/ExecutionResources.java
1 package org
.argeo
.slc
.core
.execution
;
5 import org
.springframework
.core
.io
.Resource
;
7 /** Provides write access to resources during execution */
8 public interface ExecutionResources
{
9 /** The base directory where this execution can write */
10 public File
getWritableBaseDir();
12 /** Allocates a local file in the writable area and return it as a resource. */
13 public Resource
getWritableResource(String relativePath
);
16 * Allocates a local file in the writable area and return it as a fully
19 public String
getWritableOsPath(String relativePath
);
22 * Allocates a local file in the writable area and return it as a
25 public File
getWritableOsFile(String relativePath
);
28 * Returns the resource as a file path. If the resource is not writable it
29 * is copied as a file in the writable area and the path to this local file
32 public String
getAsOsPath(Resource resource
, Boolean overwrite
);