Browse Source

Allow subclasses to extend scanDir functionality

Submitted by: Jorgen Thelin <ant-dev@sw-technologies.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267628 13f79535-47bb-0310-9956-ffa450edef68
master
Sam Ruby 25 years ago
parent
commit
8428504db7
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/main/org/apache/tools/ant/taskdefs/Javac.java

+ 4
- 4
src/main/org/apache/tools/ant/taskdefs/Javac.java View File

@@ -97,8 +97,8 @@ public class Javac extends MatchingTask {
private String bootclasspath; private String bootclasspath;
private String extdirs; 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. * 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 // scan source and dest dirs to build up both copy lists and
// compile lists // compile lists


DirectoryScanner ds = super.getDirectoryScanner(srcDir);
DirectoryScanner ds = this.getDirectoryScanner(srcDir);


String[] files = ds.getIncludedFiles(); String[] files = ds.getIncludedFiles();


@@ -252,7 +252,7 @@ public class Javac extends MatchingTask {
* class variables compileList and filecopyList. * 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(); compileList.removeAllElements();
filecopyList.clear(); filecopyList.clear();


Loading…
Cancel
Save