Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

rm buildDate from build.xml and its usages

Thomas Koch3116713672bb
diff --git a/build.nsi b/build.nsi
index 6587e3810..cdd7218de 100644
--- a/build.nsi
+++ b/build.nsi
@@ -30,10 +30,10 @@ VIAddVersionKey "ProductName" "YaCy"
VIAddVersionKey "LegalCopyright" "YaCy"
VIAddVersionKey "FileVersion" "@REPL_VERSION@"
VIAddVersionKey "FileDescription" "YaCy"
-VIAddVersionKey "OriginalFilename" "yacy_v@REPL_VERSION@_@REPL_DATE@_@[email protected]"
+VIAddVersionKey "OriginalFilename" "yacy_v@REPL_VERSION@_@[email protected]"
Name "YaCy @REPL_VERSION@"
-OutFile "RELEASE\WINDOWS\yacy_v@REPL_VERSION@_@REPL_DATE@_@[email protected]"
+OutFile "RELEASE\WINDOWS\yacy_v@REPL_VERSION@_@[email protected]"
;default installation folder
InstallDir "$PROFILE\YaCy"
@@ -95,7 +95,7 @@ SetCompressor /SOLID LZMA
!define MUI_COMPONENTSPAGE_NODESC
!insertmacro MUI_PAGE_COMPONENTS
-ComponentText "YaCy v@REPL_VERSION@ (Build @REPL_DATE@)"
+ComponentText "YaCy v@REPL_VERSION@"
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE CheckDriveSpace
!insertmacro MUI_PAGE_DIRECTORY
diff --git a/build.properties b/build.properties
index dd0e58a10..c2438f437 100644
--- a/build.properties
+++ b/build.properties
@@ -4,8 +4,7 @@ javacTarget=1.8
# Release Configuration
releaseVersion=1.925
-stdReleaseFile=yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz
-sourceReleaseFile=yacy_src_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz
+stdReleaseFile=yacy_v${releaseVersion}_${releaseNr}.tar.gz
releaseFileParentDir=yacy
privateKeyFile=private.key
diff --git a/build.xml b/build.xml
index 1e21bad53..4ce3d5377 100644
--- a/build.xml
+++ b/build.xml
@@ -30,11 +30,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-->
- <!-- defining the timestamp format -->
- <tstamp>
- <format property="REPL_DATE_FORMAT" pattern="yyyymmdd" />
- </tstamp>
-
<!-- defining all needed directory names -->
<property name="yacyroot" location="."/>
<property name="addon" location="addon"/>
@@ -143,10 +138,6 @@
<mkdir dir="${data}"/>
<mkdir dir="${release}"/>
- <!-- YaCy Release Date -->
- <filter token="REPL_DATE" value="${DSTAMP}"/>
- <filter token="REPL_RELEASE" value="${stdReleaseFile}"/>
-
<!-- YaCy Release Version number -->
<echo message="YaCy Version number: ${releaseVersion}" />
<filter token="REPL_VERSION" value="${releaseVersion}" />
@@ -155,14 +146,11 @@
<echo message="YaCy Release number: ${releaseNr}" />
<filter token="REPL_REVISION_NR" value="${releaseNr}"/>
- <!-- YaCy root directory -->
- <filter token="REPL_YACY_ROOT_DIR" value="${yacyroot}"/>
-
<!-- apply replacments -->
<copy file="${src}/net/yacy/peers/operation/yacyBuildProperties.java.template" tofile="${src}/net/yacy/peers/operation/yacyBuildProperties.java" overwrite="true" filtering="true" />
<!-- copy log4j config file -->
- <copy file="${src}/log4j.properties" tofile="${build}/log4j.properties" overwrite="true" filtering="true" /> <!-- @TODO: obsolete, contains no replace/filter pattern -->
+ <copy file="${src}/log4j.properties" tofile="${build}/log4j.properties" overwrite="true" filtering="false" /> <!-- @TODO: obsolete, contains no replace/filter pattern -->
</target>
@@ -591,8 +579,8 @@
<classpath location="${libbuild}/nsisant-1.2.jar"/>
</taskdef>
<nsis script="${release_windows}/build.nsi" nocd="yes" verbosity="2" />
- <move file="${release_windows}/yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.exe"
- tofile="${release}/yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.exe" />
+ <move file="${release_windows}/yacy_v${releaseVersion}_${releaseNr}.exe"
+ tofile="${release}/yacy_v${releaseVersion}_${releaseNr}.exe" />
<delete dir="${release_main}"/>
<delete dir="${release_windows}" failonerror="false" />
@@ -602,13 +590,13 @@
<copy todir="${release_mac}/YaCy.app">
<fileset dir="${addon}/YaCy.app"></fileset>
</copy>
- <copy file="${addon}/YaCy.app/Contents/Info.plist" tofile="${release_mac}/YaCy.app/Contents/Info.plist" filtering="true" overwrite="true" />
+ <copy file="${addon}/YaCy.app/Contents/Info.plist" tofile="${release_mac}/YaCy.app/Contents/Info.plist" filtering="false" overwrite="true" />
<move file="${release_main}" tofile="${release_mac}/YaCy.app/Contents/MacOS" verbose="false" />
<!-- startYACY.sh and startYACYMacOS.sh will be the main entry points : we set permissions to make it executable files -->
<chmod file="${release_mac}/YaCy.app/Contents/MacOS/startYACYMacOS.sh" perm="755"/>
<chmod file="${release_mac}/YaCy.app/Contents/MacOS/startYACY.sh" perm="755"/>
<exec executable="hdiutil">
- <arg line="create -srcfolder ${release_mac}/YaCy.app ${release}/yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.dmg"/>
+ <arg line="create -srcfolder ${release_mac}/YaCy.app ${release}/yacy_v${releaseVersion}_${releaseNr}.dmg"/>
</exec>
<delete dir="${release_mac}" failonerror="false" verbose="false" />
</target>
diff --git a/htroot/api/version.java b/htroot/api/version.java
index 333a246b1..c19eff656 100644
--- a/htroot/api/version.java
+++ b/htroot/api/version.java
@@ -13,7 +13,7 @@ public class version {
prop.put("versionstring", yacyBuildProperties.getLongVersion());
prop.put("svnRev", yacyBuildProperties.getSVNRevision());
- prop.put("buildDate", yacyBuildProperties.getBuildDate());
+
// return rewrite properties
return prop;
}
diff --git a/htroot/api/version.xml b/htroot/api/version.xml
index d75a5be48..b0585f62c 100644
--- a/htroot/api/version.xml
+++ b/htroot/api/version.xml
@@ -2,5 +2,5 @@
<version>
<number>#[versionstring]#</number>
<svnRevision>#[svnRev]#</svnRevision>
- <buildDate>#[buildDate]#</buildDate>
+ <buildDate>19700101</buildDate>
</version>
diff --git a/source/net/yacy/peers/operation/yacyBuildProperties.java.template b/source/net/yacy/peers/operation/yacyBuildProperties.java.template
index 4f6dfd95f..0304159d9 100644
--- a/source/net/yacy/peers/operation/yacyBuildProperties.java.template
+++ b/source/net/yacy/peers/operation/yacyBuildProperties.java.template
@@ -40,14 +40,4 @@ public final class yacyBuildProperties {
public static String getLongVersion() {
return String.format(Locale.US, "%.3f%05d", Float.valueOf(getVersion()), Integer.valueOf(getSVNRevision()));
}
-
- /**
- * returns the date, when this release was build
- */
- public static String getBuildDate() {
- if ("@REPL_DATE@".contains("@")) {
- return "19700101";
- }
- return "@REPL_DATE@";
- }
}
diff --git a/source/net/yacy/peers/operation/yacyVersion.java b/source/net/yacy/peers/operation/yacyVersion.java
index d5e1924fc..97d40ae43 100644
--- a/source/net/yacy/peers/operation/yacyVersion.java
+++ b/source/net/yacy/peers/operation/yacyVersion.java
@@ -82,7 +82,6 @@ public class yacyVersion implements Comparator<yacyVersion>, Comparable<yacyVers
thisVersion = new yacyVersion(
"yacy" +
"_v" + yacyBuildProperties.getVersion() + "_" +
- yacyBuildProperties.getBuildDate() + "_" +
yacyBuildProperties.getSVNRevision() + ".tar.gz", null);
}
return thisVersion;
diff --git a/source/net/yacy/yacy.java b/source/net/yacy/yacy.java
index 4ac5990eb..db8091972 100644
--- a/source/net/yacy/yacy.java
+++ b/source/net/yacy/yacy.java
@@ -125,8 +125,7 @@ public final class yacy {
// static objects
public static final String vString = yacyBuildProperties.getVersion();
- public static final String vDATE = yacyBuildProperties.getBuildDate();
- public static final String copyright = "[ YaCy v" + vString + ", build " + vDATE + " by Michael Christen / www.yacy.net ]";
+ public static final String copyright = "[ YaCy v" + vString + " by Michael Christen / www.yacy.net ]";
public static final String hline = "-------------------------------------------------------------------------------";
public static final Semaphore shutdownSemaphore = new Semaphore(0);
@@ -874,4 +873,4 @@ class shutdownHookThread extends Thread {
ConcurrentLog.severe("SHUTDOWN","Unexpected error. " + e.getClass().getName(),e);
}
}
-}
\ No newline at end of file
+}