Author: dbkr
Date: 2006-08-05 22:08:19 +0000 (Sat, 05 Aug 2006)
New Revision: 9919

Modified:
   trunk/apps/Freemail/build.xml
   trunk/apps/Freemail/src/freemail/Freemail.java
Log:
Version info and build file tweaks.


Modified: trunk/apps/Freemail/build.xml
===================================================================
--- trunk/apps/Freemail/build.xml       2006-08-05 22:07:22 UTC (rev 9918)
+++ trunk/apps/Freemail/build.xml       2006-08-05 22:08:19 UTC (rev 9919)
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<project name="Freemail" default="compile" basedir=".">
+<project name="Freemail" default="dist" basedir=".">
        <!-- set global properties for this build -->
        <property name="src" location="src"/>
        <property name="build" location="build"/>
@@ -35,7 +35,7 @@

                <!-- Bundle the whole lot together, unless anyone whinges.
                     It makes it much easier to run -->
-               <javac srcdir="${src}" destdir="${build}" debug="on" 
optimize="on" source="1.4" compiler="jikes" />
+               <javac srcdir="${src}" destdir="${build}" debug="on" 
optimize="on" source="1.4" />
        </target>


@@ -55,6 +55,15 @@
        </target>

        <target name="clean">
+               <delete includeEmptyDirs="true">
+                       <fileset dir="${build}">
+                               <exclude name="org/bouncycastle/**"/>
+                       </fileset>
+               </delete>
+               <delete dir="${lib}"/>
+       </target>
+
+       <target name="squeakyclean">
                <delete dir="${build}"/>
                <delete dir="${lib}"/>
        </target>

Modified: trunk/apps/Freemail/src/freemail/Freemail.java
===================================================================
--- trunk/apps/Freemail/src/freemail/Freemail.java      2006-08-05 22:07:22 UTC 
(rev 9918)
+++ trunk/apps/Freemail/src/freemail/Freemail.java      2006-08-05 22:08:19 UTC 
(rev 9919)
@@ -9,6 +9,12 @@
 import freemail.smtp.SMTPListener;

 public class Freemail {
+       // version info
+       public static final int VER_MAJOR = 0;
+       public static final int VER_MINOR = 1;
+       public static final int BUILD_NO = 1;
+       public static final String VERSION_TAG = "Pet Shop";
+
        private static final String TEMPDIRNAME = "temp";
        private static final String DATADIR = "data";
        private static final String GLOBALDATADIR = "globaldata";
@@ -34,6 +40,10 @@
                String newpasswd = null;
                String alias = null;

+               System.out.println("This is Freemail version 
"+VER_MAJOR+"."+VER_MINOR+" build #"+BUILD_NO+" ("+VERSION_TAG+")");
+               System.out.println("Freemail is released under the terms of the 
GNU Lesser General Public License. Freemail is provided WITHOUT ANY WARRANTY; 
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE. For details, see the LICENSE file included with this 
distribution.");
+               System.out.println("");
+               
                for (int i = 0; i < args.length; i++) {
                        if (args[i].equals("--newaccount")) {
                                action = args[i];


Reply via email to