1 25 26 package net.yagga.miniinstaller; 27 28 import net.yagga.util.Ut; 29 30 35 public class Version { 36 37 public static String name="Mini Installer"; 38 public static String version="1.0.1"; 39 public static String year="2002"; 40 public static String guiVersion="1.5"; 41 public static String fileVersion="1.6"; 42 public static String buildDate="16-August-"+year; 43 public static String author="Walter Gamba (walter@yagga.net)"; 44 public static String link="http://www.yagga.net/java/miniinstaller"; 45 public static String 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 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 84 public static String getFQName(){ 85 return name+" "+version; 86 } 87 } 88 | Popular Tags |