1.1 --- a/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/SourcePath.java Wed Oct 17 16:43:26 2012 +0100 1.2 +++ b/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/SourcePath.java Tue Oct 23 13:20:37 2012 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1998, 2003, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -38,8 +38,7 @@ 1.11 * 1.12 * @author Atul M Dambalkar 1.13 */ 1.14 -public 1.15 - class SourcePath { 1.16 +public class SourcePath { 1.17 private final char dirSeparator = File.pathSeparatorChar; 1.18 1.19 /** 1.20 @@ -114,9 +113,9 @@ 1.21 * @param name Name of the directory to be searched for in the source path. 1.22 * @return File Return the directory if found else return null. 1.23 */ 1.24 - public File getDirectory(String name) { 1.25 + public File getDirectory(DocPath p) { 1.26 for (int i = 0; i < sourcePath.length; i++) { 1.27 - File directoryNeeded = new File(sourcePath[i], name); 1.28 + File directoryNeeded = new File(sourcePath[i], p.getPath()); 1.29 if (directoryNeeded.isDirectory()) { 1.30 return directoryNeeded; 1.31 }