use absolute resources
This commit is contained in:
parent
5d0e67ba4e
commit
b7a4dc207d
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ public class GitHash {
|
|||
|
||||
public static final String GIT_HASH;
|
||||
static {
|
||||
InputStream stream = GitHash.class.getResourceAsStream("commit");
|
||||
InputStream stream = GitHash.class.getResourceAsStream("/commit");
|
||||
if(stream != null) {
|
||||
try {
|
||||
GIT_HASH = new StreamReader(stream).readAllAsString().trim();
|
||||
|
|
|
@ -9,7 +9,7 @@ public class GitHash {
|
|||
|
||||
public static final String GIT_HASH;
|
||||
static {
|
||||
InputStream stream = GitHash.class.getResourceAsStream("commit");
|
||||
InputStream stream = GitHash.class.getResourceAsStream("/commit");
|
||||
if(stream != null) {
|
||||
try {
|
||||
GIT_HASH = new StreamReader(stream).readAllAsString().trim();
|
||||
|
|
Loading…
Add table
Reference in a new issue