diff --git a/build.xml b/build.xml index 45c66f1..9d66a82 100644 --- a/build.xml +++ b/build.xml @@ -83,7 +83,7 @@ Version is ${VERSION} - /* Automatically generated file */ + /* Automatically generated file */ package org.umlgraph.doclet; class Version { public static String VERSION = "${VERSION}";} diff --git a/src/main/java/org/umlgraph/doclet/Version.java b/src/main/java/org/umlgraph/doclet/Version.java index 3db05df..d76026d 100644 --- a/src/main/java/org/umlgraph/doclet/Version.java +++ b/src/main/java/org/umlgraph/doclet/Version.java @@ -1,29 +1,4 @@ +/* Automatically generated file */ package org.umlgraph.doclet; - -import java.io.IOException; -import java.io.InputStream; -import java.util.Properties; - -class Version { - private final static String filename = "version.properties"; - private final static String key = "umlgraph.version"; - public static String VERSION; - - static { - Properties props = new Properties(); - InputStream in = Version.class.getClassLoader().getResourceAsStream(filename); - try { - props.load(in); - if (props.get(key) == null) { - System.err.println("Could not find version property"); - VERSION = "0"; - } else { - VERSION = props.get(key).toString(); - } - - in.close(); - } catch (IOException e) { - e.printStackTrace(); - } - } -} +class Version { public static String VERSION = "R5_6-24-gf6e263";} + \ No newline at end of file