From 8428504db7ea61eb5d0a6458d79b41f11290e1a4 Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Sat, 4 Mar 2000 20:07:02 +0000 Subject: [PATCH] Allow subclasses to extend scanDir functionality Submitted by: Jorgen Thelin git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267628 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Javac.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Javac.java b/src/main/org/apache/tools/ant/taskdefs/Javac.java index 9568f45fb..8db86a2a7 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Javac.java +++ b/src/main/org/apache/tools/ant/taskdefs/Javac.java @@ -97,8 +97,8 @@ public class Javac extends MatchingTask { private String bootclasspath; private String extdirs; - private Vector compileList = new Vector(); - private Hashtable filecopyList = new Hashtable(); + protected Vector compileList = new Vector(); + protected Hashtable filecopyList = new Hashtable(); /** * Set the source dir to find the source Java files. @@ -193,7 +193,7 @@ public class Javac extends MatchingTask { // scan source and dest dirs to build up both copy lists and // compile lists - DirectoryScanner ds = super.getDirectoryScanner(srcDir); + DirectoryScanner ds = this.getDirectoryScanner(srcDir); String[] files = ds.getIncludedFiles(); @@ -252,7 +252,7 @@ public class Javac extends MatchingTask { * class variables compileList and filecopyList. */ - private void scanDir(File srcDir, File destDir, String files[]) { + protected void scanDir(File srcDir, File destDir, String files[]) { compileList.removeAllElements(); filecopyList.clear();