01: package net.xoetrope.xui.build;
02:
03: /**
04: * Toggles the debug build so that logging and other debug code can be excluded
05: * from a release build.
06: * <p>Copyright (c) Xoetrope Ltd., 2002-2003</p>
07: * $Revision: 1.7 $
08: */
09: public class BuildProperties {
10: public static final boolean DEBUG = true;
11: public static final boolean BUILD_JDK_118 = false;
12: private static final String BUILD_VERSION = "$Revision: 1.7 $";
13:
14: /**
15: * Get the version number.
16: * @return 120 for version 1.20
17: */
18: public static int getVersionNumber() {
19: double dv = new Double(BUILD_VERSION.substring(10,
20: BUILD_VERSION.length() - 2)).doubleValue();
21: return (int) (100.0 * dv);
22: }
23: }
|