aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2017-06-13 00:43:49 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2017-06-13 00:43:49 +0200
commit33dc6a2802cbd5ca80e2ab35ecafd16e8be98851 (patch)
tree183b9b0728d1b86e33d1932677bc4fac41171e7c
parentb00aa1bb408f503594e40ef417df0a46b97c5ee8 (diff)
downloadlombok-33dc6a2802cbd5ca80e2ab35ecafd16e8be98851.tar.gz
lombok-33dc6a2802cbd5ca80e2ab35ecafd16e8be98851.tar.bz2
lombok-33dc6a2802cbd5ca80e2ab35ecafd16e8be98851.zip
timestamp is added to download-edge releases.
-rw-r--r--src/website/lombok/website/WebsiteMaker.java8
-rw-r--r--website/templates/_download-edge.html2
2 files changed, 9 insertions, 1 deletions
diff --git a/src/website/lombok/website/WebsiteMaker.java b/src/website/lombok/website/WebsiteMaker.java
index 5715086b..6e773346 100644
--- a/src/website/lombok/website/WebsiteMaker.java
+++ b/src/website/lombok/website/WebsiteMaker.java
@@ -12,14 +12,17 @@ import java.io.OutputStreamWriter;
import java.io.Writer;
import java.lang.reflect.Method;
import java.net.URL;
+import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
+import java.util.Date;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
+import java.util.TimeZone;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -324,8 +327,13 @@ public class WebsiteMaker {
private Map<String, Object> createBasicDataModel() throws IOException {
Map<String, Object> data = new HashMap<String, Object>();
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss 'UTC'");
+ sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
+ String currentTime = sdf.format(new Date());
+
data.put("version", version);
data.put("fullVersion", fullVersion);
+ data.put("timestampString", currentTime);
data.put("year", "" + new GregorianCalendar().get(Calendar.YEAR));
data.put("changelog", CompileChangelog.getHtml(baseDir.getParentFile()));
data.put("changelogEdge", CompileChangelog.getHtmlForEdge(baseDir.getParentFile(), version));
diff --git a/website/templates/_download-edge.html b/website/templates/_download-edge.html
index bd49c1b1..724efa58 100644
--- a/website/templates/_download-edge.html
+++ b/website/templates/_download-edge.html
@@ -4,7 +4,7 @@
<div class="row text-center versionInfo">
<h1>Download 'Edgy Guinea Pig' – the Lombok Cutting Edge build</h1>
</div><div class="row versionInfo">
- version: ${version}
+ version: ${version} (${timestampString})
</div><div class="row" id="changelog">
${changelogEdge?no_esc}
</div><div class="row text-center">