Added an ANT build file that provides semi-automatic versioning and

packing the jar file and default config.yml into a zip file.
This commit is contained in:
Pascal Koenig
2011-09-01 22:30:51 +02:00
parent fc52f2f68f
commit 5c03954b48
7 changed files with 84 additions and 61 deletions

View File

@@ -32,7 +32,7 @@ import com.nidefawl.Stats.Stats;
public class XmlStats extends JavaPlugin {
private final static Logger log = Logger.getLogger("Minecraft");
private final static double version = 0.01;
private String version;
private final static String logprefix = "[XmlStats]";
private boolean enabled = false;
@@ -59,7 +59,8 @@ public class XmlStats extends JavaPlugin {
*/
@Override
public void onEnable() {
this.version = getDescription().getVersion();
getDataFolder().mkdirs();
XmlStatsRegistry.put("settings", new Settings(this));
@@ -83,7 +84,7 @@ public class XmlStats extends JavaPlugin {
XmlStatsRegistry.put("webserver", new Webserver());
this.enabled = true;
LogInfo("Plugin Enabled");
LogInfo("XmStats "+this.version+" enabled");
}
catch (Exception ex){
LogError("Fehler beim Erstellen des Webservers:");