Commit 5af6741f authored by Manuel Gunkel's avatar Manuel Gunkel
Browse files

close xml FileOutputStreams after writing

parent 9918a7b1
......@@ -8,7 +8,7 @@
<version>5.0</version> <relativePath /> </parent> -->
<groupId>embl.almf</groupId>
<artifactId>AutoMicTools_</artifactId>
<version>1.1.28-SNAPSHOT</version>
<version>1.1.29-SNAPSHOT</version>
<name>plugins/AutoMicTools_.jar</name>
<description>Collection of tools for automated (feedback) microscopy data acquisition and analysis</description>
......
......@@ -103,12 +103,14 @@ public class PipelineXMLWriter {
DOMSource source = new DOMSource(_document);
StreamResult result = new StreamResult(new FileOutputStream(targetFile));
FileOutputStream fos = new FileOutputStream(targetFile);
StreamResult result = new StreamResult(fos);
transformer.transform(source, result);
// Output to console for testing
StreamResult consoleResult = new StreamResult(System.out);
transformer.transform(source, consoleResult);
fos.close();
}
public void writePipelineToFile(PipelineInterface _pipeline, File _file)throws Exception{
......
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