Don't generate PDF unless you have -run specified

This commit is contained in:
Mark DePristo 2011-11-09 14:45:40 -05:00
parent 29df96a77b
commit 0111e58d4e
1 changed files with 5 additions and 3 deletions

View File

@ -129,12 +129,14 @@ class QCommandLine extends CommandLineProgram with Logging {
logger.info("Writing JobLogging GATKReport to file " + reportFile) logger.info("Writing JobLogging GATKReport to file " + reportFile)
QJobReport.printReport(qGraph.getFunctionsAndStatus(script.functions), reportFile) QJobReport.printReport(qGraph.getFunctionsAndStatus(script.functions), reportFile)
if ( settings.run ) {
val pdfFile = new File(jobStringName + ".pdf") val pdfFile = new File(jobStringName + ".pdf")
logger.info("Plotting JobLogging GATKReport to file " + pdfFile) logger.info("Plotting JobLogging GATKReport to file " + pdfFile)
QJobReport.plotReport(reportFile, pdfFile) QJobReport.plotReport(reportFile, pdfFile)
} }
} }
} }
}
if (!qGraph.success) { if (!qGraph.success) {
logger.info("Done with errors") logger.info("Done with errors")