解决版本信息错误问题
This commit is contained in:
@@ -68,7 +68,9 @@ public class GitRepositoryState {
|
|||||||
public static GitRepositoryState getGitRepositoryState() throws IOException {
|
public static GitRepositoryState getGitRepositoryState() throws IOException {
|
||||||
Properties properties = new Properties();
|
Properties properties = new Properties();
|
||||||
try {
|
try {
|
||||||
InputStream inputStream = new FileInputStream("config/git.properties");
|
String configPath = System.getProperty("wildfirechat.path", null);
|
||||||
|
File f = new File(configPath, "config/git.properties");
|
||||||
|
InputStream inputStream = new FileInputStream(f);
|
||||||
BufferedReader bf = new BufferedReader(new InputStreamReader(inputStream));
|
BufferedReader bf = new BufferedReader(new InputStreamReader(inputStream));
|
||||||
properties.load(bf);
|
properties.load(bf);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user