X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=runtime%2Forg.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2FFileExecutionResources.java;fp=runtime%2Forg.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2FFileExecutionResources.java;h=3c3f77aebf64f343627aab7e0dc5a0f0b0032731;hb=ff68bb057dae37c01cde18e0fddb27f6a420f658;hp=646a1c156201cd8cac88e9092dd59d397a40d823;hpb=d1c290d7b0986117d44a3deae3ee8e1337521d05;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/FileExecutionResources.java b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/FileExecutionResources.java index 646a1c156..3c3f77aeb 100644 --- a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/FileExecutionResources.java +++ b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/FileExecutionResources.java @@ -32,6 +32,7 @@ import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.Resource; import org.springframework.util.Assert; +/** Implements write access to resources based on standard Java {@link File} */ public class FileExecutionResources implements ExecutionResources { private final static Log log = LogFactory .getLog(FileExecutionResources.class); @@ -40,8 +41,7 @@ public class FileExecutionResources implements ExecutionResources { .getProperty("java.io.tmpdir") + File.separator + "slc" - + File.separator - + DEFAULT_EXECUTION_RESOURCES_DIRNAME; + + File.separator + DEFAULT_EXECUTION_RESOURCES_DIRNAME; private File baseDir; private ExecutionContext executionContext; @@ -172,10 +172,9 @@ public class FileExecutionResources implements ExecutionResources { Assert.notNull(executionContext, "execution context is null"); String path = baseDir.getPath() + File.separator - + sdf() - .format( - executionContext - .getVariable(ExecutionContext.VAR_EXECUTION_CONTEXT_CREATION_DATE)) + + sdf().format( + executionContext + .getVariable(ExecutionContext.VAR_EXECUTION_CONTEXT_CREATION_DATE)) + executionContext.getUuid(); return new File(path); } else {