summaryrefslogtreecommitdiffstats
path: root/buildhelpers
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2014-05-09 20:57:21 +0300
committerArtur Signell <artur@vaadin.com>2014-05-12 07:26:03 +0000
commitee16285aee05e6d482f46e36ed60064b0ae1543a (patch)
tree5c2199bb3f7a12c237bb0c125638203dadbde498 /buildhelpers
parent45226d5c32e7e084bc494a58596bf6ff7a2c0f85 (diff)
downloadvaadin-framework-ee16285aee05e6d482f46e36ed60064b0ae1543a.tar.gz
vaadin-framework-ee16285aee05e6d482f46e36ed60064b0ae1543a.zip
Support passing multiple versions
Change-Id: I5aae200f8e49e1f9f53bbf53ceba1551854d013e
Diffstat (limited to 'buildhelpers')
-rw-r--r--buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java22
1 files changed, 18 insertions, 4 deletions
diff --git a/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java b/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java
index 6434c94352..028880b2e1 100644
--- a/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java
+++ b/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java
@@ -17,6 +17,7 @@ package com.vaadin.buildhelpers;
import java.io.IOException;
import java.io.InputStream;
+import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.List;
@@ -24,7 +25,7 @@ import java.util.List;
import org.apache.commons.io.IOUtils;
public class FetchReleaseNotesTickets {
- private static final String queryURL = "http://dev.vaadin.com/query?status=closed&amp;milestone=Vaadin+@version@&amp;resolution=fixed&amp;col=id&amp;col=summary&amp;col=owner&amp;col=type&amp;col=priority&amp;col=component&amp;col=version&amp;col=bfptime&col=fv&amp;format=tab&amp;order=id";
+ private static final String queryURL = "http://dev.vaadin.com/query?status=closed&amp;@milestone@&amp;resolution=fixed&amp;col=id&amp;col=summary&amp;col=owner&amp;col=type&amp;col=priority&amp;col=component&amp;col=version&amp;col=bfptime&col=fv&amp;format=tab&amp;order=id";
private static final String ticketTemplate = "<tr>"
+ "@badge@" //
+ "<td class=\"ticket\"><a href=\"http://dev.vaadin.com/ticket/@ticket@\">#@ticket@</a></td>" //
@@ -32,12 +33,25 @@ public class FetchReleaseNotesTickets {
+ "</tr>"; //
public static void main(String[] args) throws IOException {
- String version = System.getProperty("vaadin.version");
- if (version == null || version.equals("")) {
+ String versions = System.getProperty("vaadin.version");
+ if (versions == null || versions.equals("")) {
usage();
}
+ String milestone = "";
+ for (String version : versions.split(" ")) {
+ if (!milestone.equals("")) {
+ milestone += "&amp;";
+ }
+ milestone += "milestone=Vaadin+" + version;
+ }
+
+ printMilestone(milestone);
+ }
+
+ private static void printMilestone(String milestone)
+ throws MalformedURLException, IOException {
- URL url = new URL(queryURL.replace("@version@", version));
+ URL url = new URL(queryURL.replace("@milestone@", milestone));
URLConnection connection = url.openConnection();
InputStream urlStream = connection.getInputStream();