1 /* |
1 /* |
2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2013, 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 |
75 try { |
75 try { |
76 String dirName = configuration.destDirName.isEmpty() ? "." : configuration.destDirName; |
76 String dirName = configuration.destDirName.isEmpty() ? "." : configuration.destDirName; |
77 Path dir = fileManager.getDefaultFileSystem().getPath(dirName); |
77 Path dir = fileManager.getDefaultFileSystem().getPath(dirName); |
78 fileManager.setLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT, Arrays.asList(dir)); |
78 fileManager.setLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT, Arrays.asList(dir)); |
79 } catch (IOException e) { |
79 } catch (IOException e) { |
80 throw new DocletAbortException(); |
80 throw new DocletAbortException(e); |
81 } |
81 } |
82 } |
82 } |
83 |
83 |
84 destDir = fileManager.getLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT).iterator().next(); |
84 destDir = fileManager.getLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT).iterator().next(); |
85 } |
85 } |