langtools/src/jdk.javadoc/share/classes/com/sun/tools/doclets/internal/toolkit/util/Extern.java
changeset 36039 add34c39d882
parent 25874 83c19f00452c
child 36526 3b41f1c69604
equal deleted inserted replaced
36038:39c5445924b9 36039:add34c39d882
     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) {