public class GitProperties extends InfoProperties
InfoProperties.Entry
Constructor and Description |
---|
GitProperties(Properties entries) |
Modifier and Type | Method and Description |
---|---|
String |
getBranch()
Return the name of the branch or
null . |
String |
getCommitId()
Return the full id of the commit or
null . |
Date |
getCommitTime()
Return the timestamp of the commit or
null . |
String |
getShortCommitId()
Return the abbreviated id of the commit or
null . |
get, getDate, iterator, toPropertySource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public GitProperties(Properties entries)
public String getBranch()
null
.public String getCommitId()
null
.public String getShortCommitId()
null
.public Date getCommitTime()
null
.
If the original value could not be parsed properly, it is still available with the
commit.time
key.
InfoProperties.get(String)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.