01: /* ===========================================================================
02: * $RCSfile: Version.java,v $
03: * ===========================================================================
04: *
05: * RetroGuard -- an obfuscation package for Java classfiles.
06: *
07: * Copyright (c) 1998-2006 Mark Welsh (markw@retrologic.com)
08: *
09: * This program can be redistributed and/or modified under the terms of the
10: * Version 2 of the GNU General Public License as published by the Free
11: * Software Foundation.
12: *
13: * This program is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: * GNU General Public License for more details.
17: *
18: */
19:
20: package COM.rl.obf;
21:
22: /**
23: * Central point for version and build control.
24: *
25: * @author Mark Welsh
26: */
27: public class Version {
28: // Constants -------------------------------------------------------------
29: private static final String REL_VERSION = "2.3.1";
30: private static final String RETROGUARD_CLASS_ID = "RGLite";
31: private static final String RETROGUARD_REL_JAR_COMMENT = "Obfuscation by RetroGuard Lite - Academic / Not-For-Profit License - www.retrologic.com";
32: private static final String RETROGUARD_FULL_VERSION_COMMENT = "RetroGuard v"
33: + REL_VERSION
34: + " by Retrologic Systems - www.retrologic.com";
35:
36: public static final boolean isLite = true;
37:
38: // Class Methods ---------------------------------------------------------
39: /** Return the current major.minor.patch version string. */
40: public static String getVersion() {
41: return REL_VERSION;
42: }
43:
44: /** Return a major.minor.patch versioned comment string. */
45: public static String getVersionComment() {
46: return RETROGUARD_FULL_VERSION_COMMENT;
47: }
48:
49: /** Return the current class ID string. */
50: public static String getClassIdString() {
51: return RETROGUARD_CLASS_ID;
52: }
53:
54: /** Return the default Jar comment string. */
55: public static String getJarComment() {
56: return RETROGUARD_REL_JAR_COMMENT;
57: }
58: }
|