src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java

changeset 997
dbc4ced9d171
parent 798
4868a36f6fd8
child 1359
25e14ad23cef
equal deleted inserted replaced
996:384ea9a98912 997:dbc4ced9d171
1 /* 1 /*
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2011, 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
57 57
58 /** 58 /**
59 * {@inheritDoc} 59 * {@inheritDoc}
60 */ 60 */
61 public TagletOutput getDocRootOutput() { 61 public TagletOutput getDocRootOutput() {
62 return new TagletOutputImpl(htmlWriter.relativepathNoSlash); 62 if (htmlWriter.configuration.docrootparent.length() > 0)
63 return new TagletOutputImpl(htmlWriter.configuration.docrootparent);
64 else
65 return new TagletOutputImpl(htmlWriter.relativepathNoSlash);
63 } 66 }
64 67
65 /** 68 /**
66 * {@inheritDoc} 69 * {@inheritDoc}
67 */ 70 */

mercurial