Don't close the output stream if we're printing to stdout

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2891 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
chartl 2010-02-25 21:50:58 +00:00
parent 10cc71ceb0
commit 591102a841
1 changed files with 4 additions and 2 deletions

View File

@ -231,8 +231,10 @@ public class CoverageStatistics extends LocusWalker<Map<String,Integer>, DepthOf
printIntervalTable(statsOut,nTargetsByAvgCvgBySample,firstStats.getEndpoints());
summaryOut.close();
statsOut.close();
if ( ! getToolkit().getArguments().outFileName.contains("stdout")) {
summaryOut.close();
statsOut.close();
}
return firstStats;
}