01: /**
02: * JavaGuard -- an obfuscation package for Java classfiles.
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: *
18: *
19: * Copyright (c) 2002 Thorsten Heit (theit@gmx.de)
20: *
21: *
22: * $Id: Version.java,v 1.7 2002/05/13 17:26:14 glurk Exp $
23: */package net.sf.javaguard;
24:
25: /** Contains the program version information.
26: *
27: * @author <a href="mailto:theit@gmx.de">Thorsten Heit</a>
28: */
29: public class Version {
30: /** Holds the current program version. */
31: private static final String REL_VERSION = "1.0beta4";
32:
33: /** Holds the program name. */
34: private static final String PROGRAM_NAME = "JavaGuard v"
35: + REL_VERSION + " Bytecode Obfuscator";
36:
37: /** Holds the comment for the Jar file. */
38: private static final String REL_JAR_COMMENT = "Obfuscation by "
39: + PROGRAM_NAME + "\n" + "Authors:\n"
40: + "Thorsten Heit <theit@gmx.de>\n"
41: + "Mark Welsh <markw@retrologic.com>\n";
42:
43: /** Return the current <code>major.minor</code> version string.
44: * @return program version
45: */
46: public static String getVersion() {
47: return REL_VERSION;
48: }
49:
50: /** Return the current Jar comment string.
51: * @return Jar file comment
52: */
53: public static String getJarComment() {
54: return REL_JAR_COMMENT;
55: }
56:
57: /** Return the program name.
58: * @return program name
59: */
60: public static String getProgramName() {
61: return PROGRAM_NAME;
62: }
63: }
|