KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > javaguard > Version


1 /**
2  * JavaGuard -- an obfuscation package for Java classfiles.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * 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  */

24 package net.sf.javaguard;
25
26
27 /** Contains the program version information.
28  *
29  * @author <a HREF="mailto:theit@gmx.de">Thorsten Heit</a>
30  */

31 public class Version {
32   /** Holds the current program version. */
33   private static final String JavaDoc REL_VERSION = "1.0beta4";
34   
35   /** Holds the program name. */
36   private static final String JavaDoc PROGRAM_NAME = "JavaGuard v" + REL_VERSION + " Bytecode Obfuscator";
37   
38   /** Holds the comment for the Jar file. */
39   private static final String JavaDoc REL_JAR_COMMENT =
40   "Obfuscation by " + PROGRAM_NAME + "\n"
41   + "Authors:\n"
42   + "Thorsten Heit <theit@gmx.de>\n"
43   + "Mark Welsh <markw@retrologic.com>\n";
44   
45   
46   
47   
48   /** Return the current <code>major.minor</code> version string.
49    * @return program version
50    */

51   public static String JavaDoc getVersion() {
52     return REL_VERSION;
53   }
54   
55   
56   /** Return the current Jar comment string.
57    * @return Jar file comment
58    */

59   public static String JavaDoc getJarComment() {
60     return REL_JAR_COMMENT;
61   }
62   
63   
64   /** Return the program name.
65    * @return program name
66    */

67   public static String JavaDoc getProgramName() {
68     return PROGRAM_NAME;
69   }
70 }
71
Popular Tags