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

changeset 1985
0e6577980181
parent 1413
bdcef2ef52d2
child 2525
2eb010b6cb22
equal deleted inserted replaced
1984:189942cdf585 1985:0e6577980181
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
77 try { 77 try {
78 String dirName = configuration.destDirName.isEmpty() ? "." : configuration.destDirName; 78 String dirName = configuration.destDirName.isEmpty() ? "." : configuration.destDirName;
79 File dir = new File(dirName); 79 File dir = new File(dirName);
80 fileManager.setLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT, Arrays.asList(dir)); 80 fileManager.setLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT, Arrays.asList(dir));
81 } catch (IOException e) { 81 } catch (IOException e) {
82 throw new DocletAbortException(); 82 throw new DocletAbortException(e);
83 } 83 }
84 } 84 }
85 85
86 destDir = fileManager.getLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT).iterator().next(); 86 destDir = fileManager.getLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT).iterator().next();
87 } 87 }

mercurial