Include date and build date in logs
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import java.text.SimpleDateFormat
|
||||
|
||||
buildscript{
|
||||
ext{
|
||||
arcHash = property("archash")
|
||||
@@ -137,6 +139,7 @@ allprojects{
|
||||
props["number"] = versionNumber
|
||||
props["modifier"] = versionModifier
|
||||
props["build"] = buildid
|
||||
props["buildDate"] = new SimpleDateFormat("MMMM d, yyyy HH:mm a", Locale.getDefault()).format(new Date())
|
||||
props["commitHash"] = "unknown"
|
||||
if(project.hasProperty("showCommitHash")){
|
||||
props["commitHash"] = getCommitHash()
|
||||
|
||||
Reference in New Issue
Block a user