Mark Wielaard
Thu, 22 Jan 2009 14:16:46 -0800
Hi, gjdoc was still reading version.property from the root, but since it was imported in classpath we package it under the actual package dir.
2009-01-22 Mark Wielaard <m...@klomp.org>
* tools/gnu/classpath/tools/gjdoc/Main.java (getGjdocVersion):
Read versions.properties from package.
This fixes an exception when running gjdoc --version.
Committed,
Mark
--- tools/gnu/classpath/tools/gjdoc/Main.java 27 May 2008 19:25:49 -0000
1.1
+++ tools/gnu/classpath/tools/gjdoc/Main.java 22 Jan 2009 22:14:30 -0000
@@ -1827,7 +1827,7 @@
if (null == gjdocVersion) {
try {
Properties versionProperties = new Properties();
-
versionProperties.load(getClass().getResourceAsStream("/version.properties"));
+
versionProperties.load(getClass().getResourceAsStream("version.properties"));
gjdocVersion = versionProperties.getProperty("gjdoc.version");
}
catch (IOException ignore) {