diff options
author | Artur Signell <artur@vaadin.com> | 2014-05-09 20:57:21 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2014-05-12 07:26:03 +0000 |
commit | ee16285aee05e6d482f46e36ed60064b0ae1543a (patch) | |
tree | 5c2199bb3f7a12c237bb0c125638203dadbde498 | |
parent | 45226d5c32e7e084bc494a58596bf6ff7a2c0f85 (diff) | |
download | vaadin-framework-ee16285aee05e6d482f46e36ed60064b0ae1543a.tar.gz vaadin-framework-ee16285aee05e6d482f46e36ed60064b0ae1543a.zip |
Support passing multiple versions
Change-Id: I5aae200f8e49e1f9f53bbf53ceba1551854d013e
-rw-r--r-- | buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java | 22 |
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&milestone=Vaadin+@version@&resolution=fixed&col=id&col=summary&col=owner&col=type&col=priority&col=component&col=version&col=bfptime&col=fv&format=tab&order=id"; + private static final String queryURL = "http://dev.vaadin.com/query?status=closed&@milestone@&resolution=fixed&col=id&col=summary&col=owner&col=type&col=priority&col=component&col=version&col=bfptime&col=fv&format=tab&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 += "&"; + } + 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(); |