You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by ru...@locus.apache.org on 2000/03/04 21:07:02 UTC

cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Javac.java

rubys       00/03/04 12:07:02

  Modified:    src/main/org/apache/tools/ant/taskdefs Javac.java
  Log:
  Allow subclasses to extend scanDir functionality
  Submitted by: Jorgen Thelin <an...@sw-technologies.com>
  
  Revision  Changes    Path
  1.10      +4 -4      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javac.java
  
  Index: Javac.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javac.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Javac.java	2000/02/28 02:17:57	1.9
  +++ Javac.java	2000/03/04 20:07:02	1.10
  @@ -97,8 +97,8 @@
       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 @@
           // 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 @@
        * 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();