Buildfile which inserts the Date.

The Version is set in the source; so it will be correct if you check old versions out.


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@21 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 20 years ago
parent b7d4389e4b
commit c13411c198

@ -18,6 +18,15 @@
<mkdir dir="${build}/de/anomic/server"/>
<mkdir dir="${build}/de/anomic/tools"/>
<mkdir dir="${build}/de/anomic/yacy"/>
<move file="${src}/yacy.java" tofile="${src}/yacy.java.orig" />
<tstamp>
<format property="REPL_DATE_FORMAT" pattern="yyyymmdd" />
</tstamp>
<!-- <property name="REPL_DATE" value="${DSTAMP}" /> -->
<filter token="REPL_DATE" value="${DSTAMP}"/>
<copy file="${src}/yacy.java.orig" tofile="${src}/yacy.java" filtering="true" />
</target>
@ -30,6 +39,8 @@
<target name="dist" depends="compile">
<delete file="${src}/yacy.java" />
<move file="${src}/yacy.java.orig" tofile="${src}/yacy.java" />
</target>
</project>

@ -78,8 +78,8 @@ import de.anomic.yacy.*;
public class yacy {
// static objects
private static final String vString = "<<REPL_VERSION>>";
private static final String vDATE = "<<REPL_DATE>>";
private static final String vString = "0.361";
private static final String vDATE = "@REPL_DATE@";
private static final String copyright = "[ YACY Proxy v" + vString + ", build " + vDATE + " by Michael Christen / www.yacy.net ]";
private static final String hline = "-------------------------------------------------------------------------------";

Loading…
Cancel
Save