KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > yagga > miniinstaller > Version


1 /*
2  * This file is part of MiniInstaller, a self installer builder for Java
3  * Copyright (C) 2002 Walter Gamba
4  * mailto:walter@yagga.net
5  * http://www.yagga.net/java/miniinstaller
6  *
7  * MiniInstaller is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * MiniInstaller is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20  *
21  * As the time of writing, the GNU General Public Licene can be
22  * found at http://www.gnu.org/licenses/gpl.txt
23  *
24  */

25
26 package net.yagga.miniinstaller;
27
28 import net.yagga.util.Ut;
29
30 /**
31  * Version data storage.
32  * @author Walter Gamba
33  * @version 1.0
34  */

35 public class Version {
36
37   public static String JavaDoc name="Mini Installer";
38   public static String JavaDoc version="1.0.1";
39     public static String JavaDoc year="2002";
40   public static String JavaDoc guiVersion="1.5";
41   public static String JavaDoc fileVersion="1.6";
42   public static String JavaDoc buildDate="16-August-"+year;
43   public static String JavaDoc author="Walter Gamba (walter@yagga.net)";
44   public static String JavaDoc link="http://www.yagga.net/java/miniinstaller";
45     public static String JavaDoc licenseFile="LICENSE.txt";
46
47   public Version() {
48   }
49
50
51   public static void writeFullInfo(){
52     Ut.infoln("-----------------------------");
53     writeInfo();
54     Ut.infoln(" Gui version\t"+guiVersion);
55     Ut.infoln(" Files version\t"+fileVersion);
56     Ut.infoln("-----------------------------");
57   }
58
59   public static void writeInfo(){
60     Ut.infoln(" "+name+" version\t"+version+"\t\t\tbuilt on "+buildDate);
61     writeContactInfo();
62         Ut.infoln("");
63         writeShortGPL();
64     Ut.infoln("");
65   }
66   public static void writeContactInfo(){
67     Ut.infoln(" Copyright (C) "+year+" "+author+"\n "+link);
68   }
69
70     /**
71      * Prints out a GPL syntetic info
72      * @return
73      */

74     public static void writeShortGPL(){
75         Ut.infoln(" "+name+" comes with ABSOLUTELY NO WARRANTY;\n"+
76     " This is free software, and you are welcome to redistribute it under certain\n conditions; "+
77     "Please see the enclosed '"+licenseFile+"' file for details.");
78     }
79
80     /**
81      * GEt fully qualified application name
82      * @return AppName + Version
83      */

84     public static String JavaDoc getFQName(){
85         return name+" "+version;
86     }
87 }
88
Popular Tags