Gianpaolo Coro 2016-06-28 10:37:13 +00:00
parent c4799febf0
commit d0600b0c8f
1 changed files with 7 additions and 1 deletions

View File

@ -210,9 +210,15 @@ public abstract class GenericRScript extends StandardLocalExternalAlgorithm {
String preparedFile = new File(config.getConfigPath(), rowFile.getName()).getAbsolutePath();
AnalysisLogger.getLogger().debug("Copying " + rowFile.getAbsolutePath() + " to " + preparedFile);
try{
org.gcube.dataanalysis.executor.rscripts.generic.FileUtils.moveFileToDirectory(rowFile, new File(config.getConfigPath()), false);
files.add(preparedFile);
}catch(Exception e){
e.printStackTrace();
AnalysisLogger.getLogger().debug("error in moving file " + rowFile.getAbsolutePath() + " to " + preparedFile);
AnalysisLogger.getLogger().debug(e);
throw e;
}
break;
} else
AnalysisLogger.getLogger().debug("Checking row file does not exist - treating as a String");