Gianpaolo Coro 6 years ago
parent 22b2cfcafb
commit 066809a7ae

@ -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());

Loading…
Cancel
Save