X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=build.gradle;h=9aedd2f5691bacac3ac418eec41246886d4ba1d4;hb=refs%2Fheads%2FJAL-3315_getdown_1_8_6_update;hp=f851c7d588c146abc291ed3eb7666951c465ce05;hpb=4002aade4a1b041f7e94120dfb60960779701304;p=jalview.git diff --git a/build.gradle b/build.gradle index f851c7d..9aedd2f 100644 --- a/build.gradle +++ b/build.gradle @@ -432,9 +432,9 @@ cleanTest { delete cloverInstrDir } +// format is a string like date.format("dd MMMM yyyy") def getDate(format) { def date = new Date() - //return date.format("dd MMMM yyyy") return date.format(format) } @@ -466,9 +466,9 @@ task createBuildProperties(type: WriteProperties) { inputs.dir("$jalviewDir/$resourceDir") outputFile "$classes/$buildPropertiesFile" // taking time specific comment out to allow better incremental builds - //comment "--Jalview Build Details--\n"+getDate("yyyy-MM-dd HH:mm:ss") - comment "--Jalview Build Details--\n"+getDate("yyyy-MM-dd") - property "BUILD_DATE", getDate("dd MMMM yyyy") + comment "--Jalview Build Details--\n"+getDate("yyyy-MM-dd HH:mm:ss") + //comment "--Jalview Build Details--\n"+getDate("yyyy-MM-dd") + property "BUILD_DATE", getDate("HH:mm:ss dd MMMM yyyy") property "VERSION", JALVIEW_VERSION property "INSTALLATION", INSTALLATION+" git-commit:"+project.ext.gitHash+" ["+project.ext.gitBranch+"]" outputs.file(outputFile)