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 . |
Instant |
getCommitTime()
Return the timestamp of the commit or
null . |
String |
getShortCommitId()
Return the abbreviated id of the commit or
null . |
get, getInstant, 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 Instant getCommitTime()
null
.
If the original value could not be parsed properly, it is still available with the
commit.time
key.
InfoProperties.get(String)