summaryrefslogtreecommitdiffstats
path: root/buildhelpers
diff options
context:
space:
mode:
authorJuuso Valli <juuso@vaadin.com>2014-07-18 14:23:46 +0300
committerVaadin Code Review <review@vaadin.com>2014-07-18 11:55:52 +0000
commit928c10b6acf82b1495086adf761fff776d3bc249 (patch)
treecfb7ef9348216ccfc1b12b7a59e25c924cad87c4 /buildhelpers
parent05cd1c7c8ebfd98c57e9bb57cf2a1bf020298d30 (diff)
downloadvaadin-framework-928c10b6acf82b1495086adf761fff776d3bc249.tar.gz
vaadin-framework-928c10b6acf82b1495086adf761fff776d3bc249.zip
Omit BOM when parsing issue list for release notes
Change-Id: If241edbb79fecd3d99939a53f70c7c6d78f74e40
Diffstat (limited to 'buildhelpers')
-rw-r--r--buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java b/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java
index 028880b2e1..dc2a676ab8 100644
--- a/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java
+++ b/buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java
@@ -1,12 +1,12 @@
/*
* Copyright 2000-2014 Vaadin Ltd.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -58,6 +58,10 @@ public class FetchReleaseNotesTickets {
List<String> tickets = IOUtils.readLines(urlStream);
for (String ticket : tickets) {
+ // Omit BOM
+ if (!ticket.isEmpty() && ticket.charAt(0) == 65279) {
+ ticket = ticket.substring(1);
+ }
String[] fields = ticket.split("\t");
if ("id".equals(fields[0])) {
// This is the header