langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/Extern.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2016, 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 |
255 file = file.resolveAgainst(DocumentationTool.Location.DOCUMENTATION_OUTPUT); |
255 file = file.resolveAgainst(DocumentationTool.Location.DOCUMENTATION_OUTPUT); |
256 } |
256 } |
257 try { |
257 try { |
258 if (file.exists() && file.canRead()) { |
258 if (file.exists() && file.canRead()) { |
259 boolean pathIsRelative = |
259 boolean pathIsRelative = |
260 !DocFile.createFileForInput(configuration, path).isAbsolute() |
260 !isUrl(path) |
261 && !isUrl(path); |
261 && !DocFile.createFileForInput(configuration, path).isAbsolute(); |
262 readPackageList(file.openInputStream(), path, pathIsRelative); |
262 readPackageList(file.openInputStream(), path, pathIsRelative); |
263 } else { |
263 } else { |
264 throw new Fault(configuration.getText("doclet.File_error", file.getPath()), null); |
264 throw new Fault(configuration.getText("doclet.File_error", file.getPath()), null); |
265 } |
265 } |
266 } catch (IOException exc) { |
266 } catch (IOException exc) { |