Docuementation
authorMathieu Baudier <mbaudier@argeo.org>
Mon, 13 Feb 2012 11:07:11 +0000 (11:07 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Mon, 13 Feb 2012 11:07:11 +0000 (11:07 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@5066 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionResources.java
runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/FileExecutionResources.java

index 0c61398118e5f028519ad6c1069004f2a41c56f2..2313942ec08c154ffdf9ab3a4b4ae4ec91d4ca50 100644 (file)
@@ -20,6 +20,7 @@ import java.io.File;
 
 import org.springframework.core.io.Resource;
 
+/** Provides write access to resources during execution */
 public interface ExecutionResources {
        /** The base directory where this execution can write */
        public File getWritableBaseDir();
index 646a1c156201cd8cac88e9092dd59d397a40d823..3c3f77aebf64f343627aab7e0dc5a0f0b0032731 100644 (file)
@@ -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 {