src/share/classes/com/sun/tools/doclets/internal/toolkit/util/Extern.java

changeset 2366
5b8151ede720
parent 1413
bdcef2ef52d2
child 2525
2eb010b6cb22
equal deleted inserted replaced
2363:7ad480b982bf 2366:5b8151ede720
1 /* 1 /*
2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
175 DocErrorReporter reporter, boolean linkoffline) { 175 DocErrorReporter reporter, boolean linkoffline) {
176 this.linkoffline = linkoffline; 176 this.linkoffline = linkoffline;
177 try { 177 try {
178 url = adjustEndFileSeparator(url); 178 url = adjustEndFileSeparator(url);
179 if (isUrl(pkglisturl)) { 179 if (isUrl(pkglisturl)) {
180 readPackageListFromURL(url, toURL(pkglisturl)); 180 readPackageListFromURL(url, toURL(adjustEndFileSeparator(pkglisturl)));
181 } else { 181 } else {
182 readPackageListFromFile(url, DocFile.createFileForInput(configuration, pkglisturl)); 182 readPackageListFromFile(url, DocFile.createFileForInput(configuration, pkglisturl));
183 } 183 }
184 return true; 184 return true;
185 } catch (Fault f) { 185 } catch (Fault f) {

mercurial