| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Fitnesse
Revision: 318
Author: deanwampler
Date: 15 Aug 2008 16:40:29
Changes:The release version timestamp string is now generated during the compilation.
Files:| ... | ...@@ -108,12 +108,20 @@ | |
| 108 | 108 | </copy> |
| 109 | 109 | </target> |
| 110 | 110 | |
| 111 | <target name="compile" depends="init" description="compile the source (make)"> | |
| 111 | <target name="compile" depends="init, stamp-version" description="compile the source (make)"> | |
| 112 | 112 | <javac srcdir="src" destdir="classes" classpathref="classpath" debug="true" /> |
| 113 | 113 | <javac srcdir="srcFitServerTests" destdir="classes" classpathref="classpath" debug="true" /> |
| 114 | 114 | <copy file="extra/ant/tasks.properties" todir="classes" /> |
| 115 | 115 | </target> |
| 116 | 116 | |
| 117 | <target name="stamp-version"> | |
| 118 | <tstamp /> | |
| 119 | <filter token="version" value="${DSTAMP}"/> | |
| 120 | <copy filtering="true" | |
| 121 | file="src/fitnesse/FitNesseVersion.java.template" | |
| 122 | tofile="src/fitnesse/FitNesseVersion.java" /> | |
| 123 | </target> | |
| 124 | ||
| 117 | 125 | <target name="clean" description="delete everything in the classes directory"> |
| 118 | 126 | <mkdir dir="classes" /> |
| 119 | 127 | <delete includeemptydirs="true"> |
| ... | ...@@ -21,7 +21,7 @@ | |
| 21 | 21 | import fitnesse.wiki.PageVersionPruner; |
| 22 | 22 | |
| 23 | 23 | public class FitNesse { |
| 24 | public static final String VERSION = "UNRELEASED. POST:20080812"; | |
| 24 | public static final FitNesseVersion VERSION = new FitNesseVersion(); | |
| 25 | 25 | |
| 26 | 26 | private FitNesseContext context = new FitNesseContext(); |
| 27 | 27 | private SocketService theService; |
| ... | ...@@ -0,0 +1,9 @@ | |
| 1 | // Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved. | |
| 2 | // Released under the terms of the GNU General Public License version 2 or later. | |
| 3 | package fitnesse; | |
| 4 | ||
| 5 | class FitNesseVersion { | |
| 6 | public String toString() { | |
| 7 | return "FitNesse v@version@"; | |
| 8 | } | |
| 9 | } |