Gianpaolo Coro 2018-05-10 15:36:08 +00:00
parent 22b2cfcafb
commit 066809a7ae
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,8 @@ public abstract class GenericRScript extends StandardLocalInfraAlgorithm {
protected HashMap<String, String> outputValues = new HashMap<String, String>();
protected LinkedHashMap<String, StatisticalType> output = new LinkedHashMap<String, StatisticalType>();
LocalRScriptsManager scriptmanager;
protected File currentFolder = null;
@Override
public void shutdown() {
// in the case of forced shutdown, stop the R process
@ -60,6 +61,7 @@ public abstract class GenericRScript extends StandardLocalInfraAlgorithm {
StorageUtils.downloadInputFile(packageURL, localPackage.getAbsolutePath(), true);
LOGGER.debug("Generating sandbox folder");
File folder = new File(config.getConfigPath(), "rscr_" + UUID.randomUUID());
currentFolder = folder;
boolean mkdir = folder.mkdir();
LOGGER.debug("Sandbox " + folder.getAbsolutePath() + " generated: " + mkdir);
LOGGER.debug("Unzipping package into " + folder.getAbsolutePath());