Notice to GitKraken users: A vulnerability has been found in the SSH key generation of GitKraken versions 7.6.0 to 8.0.0 (https://www.gitkraken.com/blog/weak-ssh-key-fix). If you use GitKraken and have generated a SSH key using one of these versions, please remove it both from your local workstation and from your LRZ GitLab profile.

21.10.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 4207f13d authored by Benedikt Zoennchen's avatar Benedikt Zoennchen
Browse files

quick fix such that output processing works again

parent 86ddc46c
...@@ -8,6 +8,7 @@ import org.vadere.simulator.models.MainModel; ...@@ -8,6 +8,7 @@ import org.vadere.simulator.models.MainModel;
import org.vadere.simulator.projects.dataprocessing.outputfile.OutputFile; import org.vadere.simulator.projects.dataprocessing.outputfile.OutputFile;
import org.vadere.simulator.projects.dataprocessing.processor.DataProcessor; import org.vadere.simulator.projects.dataprocessing.processor.DataProcessor;
import java.io.File;
import java.nio.file.Paths; import java.nio.file.Paths;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.List; import java.util.List;
...@@ -68,7 +69,7 @@ public class ProcessorManager { ...@@ -68,7 +69,7 @@ public class ProcessorManager {
} }
public void setOutputPath(String directory) { public void setOutputPath(String directory) {
this.outputFiles.forEach(file -> file.setFileName(Paths.get(directory, String.format("%s", file.getFileName())).toString())); this.outputFiles.forEach(file -> file.setFileName(Paths.get(directory, String.format("%s", new File(file.getFileName()).getName())).toString()));
} }
public void writeOutput() { public void writeOutput() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment