From aacbb8e340f6852d0b3e4cbe9a2abf1e68bfcef0 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Tue, 10 Aug 2004 17:55:41 +0000 Subject: [PATCH] Allow DependScanner to use DirectoryScanner's basedir attribute. PR: 30558 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276763 13f79535-47bb-0310-9956-ffa450edef68 --- WHATSNEW | 3 +++ .../types/optional/depend/DependScanner.java | 22 ------------------- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/WHATSNEW b/WHATSNEW index c6b1b78da..7dcd69c99 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -14,6 +14,9 @@ Fixed bugs: variable when logged into workstations using Novell authentication. Bugzilla Report 30366. +* DependScanner.getResource() always returned nonexistent resources, + even when the resource actually existed. Bugzilla Report 30558. + Other changes: -------------- diff --git a/src/main/org/apache/tools/ant/types/optional/depend/DependScanner.java b/src/main/org/apache/tools/ant/types/optional/depend/DependScanner.java index 7eb838b06..8fc39cd11 100644 --- a/src/main/org/apache/tools/ant/types/optional/depend/DependScanner.java +++ b/src/main/org/apache/tools/ant/types/optional/depend/DependScanner.java @@ -38,11 +38,6 @@ public class DependScanner extends DirectoryScanner { public static final String DEFAULT_ANALYZER_CLASS = "org.apache.tools.ant.util.depend.bcel.FullAnalyzer"; - /** - * The base directory for the scan - */ - private File basedir; - /** * The root classes to drive the search for dependent classes */ @@ -71,23 +66,6 @@ public class DependScanner extends DirectoryScanner { this.parentScanner = parentScanner; } - /** - * Sets the basedir for scanning. This is the directory that is scanned - * recursively. - * - * @param basedir the basedir for scanning - */ - public void setBasedir(File basedir) { - this.basedir = basedir; - } - - /** - * Gets the basedir that is used for scanning. - * - * @return the basedir that is used for scanning - */ - public File getBasedir() { return basedir; } - /** * Sets the root classes to be used to drive the scan. *