소스 검색

Omit BOM when parsing issue list for release notes

Change-Id: If241edbb79fecd3d99939a53f70c7c6d78f74e40
tags/7.2.5^0
Juuso Valli 10 년 전
부모
커밋
ad5d586f2d
1개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 7
    3
      buildhelpers/src/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java

+ 7
- 3
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

Loading…
취소
저장