* hippity hoppity git no longer has properties

* for some reason it has to be there

* Build properties wont refresh?
This commit is contained in:
Telesphoreo
2018-08-08 13:05:57 -07:00
committed by Seth
parent 1588ab8baa
commit 94d91bbb31
4 changed files with 49 additions and 69 deletions

View File

@ -310,29 +310,13 @@ public class TotalFreedomMod extends AeroPlugin<TotalFreedomMod>
version = props.getProperty("buildVersion", pluginVersion);
number = props.getProperty("buildNumber", "1");
date = props.getProperty("buildDate", "unknown");
head = props.getProperty("buildHead", "unknown");
}
catch (Exception ex)
{
FLog.severe("Could not load build properties! Did you compile with NetBeans/Maven?");
FLog.severe(ex);
}
try
{
final Properties gitprops;
try (InputStream in = plugin.getResource("git.properties"))
{
gitprops = new Properties();
gitprops.load(in);
}
head = gitprops.getProperty("git.commit.id.abbrev", "unknown");
}
catch (Exception ex)
{
FLog.severe("Could not load Git properties! Is there a valid .git directory?");
FLog.severe(ex);
}
}
public String formattedVersion()