public class GitProperties extends InfoProperties
InfoProperties.Entry
Constructor and Description |
---|
GitProperties(java.util.Properties entries) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBranch()
Return the name of the branch or
null . |
java.lang.String |
getCommitId()
Return the full id of the commit or
null . |
java.time.Instant |
getCommitTime()
Return the timestamp of the commit or
null . |
java.lang.String |
getShortCommitId()
Return the abbreviated id of the commit or
null . |
get, getInstant, iterator, toPropertySource
public java.lang.String getBranch()
null
.public java.lang.String getCommitId()
null
.public java.lang.String getShortCommitId()
null
.public java.time.Instant getCommitTime()
null
.
If the original value could not be parsed properly, it is still available with the
commit.time
key.
InfoProperties.get(String)