diff --git a/public/gatk-engine/src/main/java/org/broadinstitute/gatk/engine/CommandLineGATK.java b/public/gatk-engine/src/main/java/org/broadinstitute/gatk/engine/CommandLineGATK.java index d60c5fcc1..0092c30ca 100644 --- a/public/gatk-engine/src/main/java/org/broadinstitute/gatk/engine/CommandLineGATK.java +++ b/public/gatk-engine/src/main/java/org/broadinstitute/gatk/engine/CommandLineGATK.java @@ -26,6 +26,7 @@ package org.broadinstitute.gatk.engine; import htsjdk.samtools.SAMException; +import htsjdk.samtools.util.zip.DeflaterFactory; import htsjdk.tribble.TribbleException; import org.broadinstitute.gatk.utils.commandline.Argument; import org.broadinstitute.gatk.utils.commandline.ArgumentCollection; @@ -38,6 +39,7 @@ import org.broadinstitute.gatk.utils.exceptions.UserException; import org.broadinstitute.gatk.utils.help.*; import org.broadinstitute.gatk.utils.text.TextFormattingUtils; +import java.net.InetAddress; import java.util.*; /** @@ -169,8 +171,18 @@ public class CommandLineGATK extends CommandLineExecutable { public static List createApplicationHeader() { List header = new ArrayList(); header.add(String.format("The Genome Analysis Toolkit (GATK) v%s, Compiled %s",getVersionNumber(), getBuildTime())); - header.add("Copyright (c) 2010 The Broad Institute"); + header.add("Copyright (c) 2010-2016 The Broad Institute"); header.add("For support and documentation go to " + HelpConstants.BASE_GATK_URL); + try { + header.add("[" + new Date() + "] Executing on " + + System.getProperty("os.name") + " " + System.getProperty("os.version") + + " " + System.getProperty("os.arch")); + header.add( System.getProperty("java.vm.name") + + " " + System.getProperty("java.runtime.version") + + " " + (DeflaterFactory.usingIntelDeflater()? "IntelDeflater": "JdkDeflater")); + } + catch (Exception e) { /* Unpossible! */ } + return header; }