Changeset 23211


Ignore:
Timestamp:
2010-10-26T15:21:43+13:00 (12 years ago)
Author:
sjm84
Message:

Made PatternSetToFile Java 1.4 compatible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/ant-tasks/src/org/greenstone/anttasks/PatternSetToFile.java

    r23210 r23211  
    2626   
    2727    //An array of the child PatternSets of this task
    28     public ArrayList<PatternSet> _sets = new ArrayList<PatternSet>();
     28    public ArrayList _sets = new ArrayList();
    2929
    3030    /**
     
    3737            System.out.println("Creating " + _outfile.getAbsolutePath());
    3838            BufferedWriter out = new BufferedWriter(new FileWriter(_outfile));
    39             for(PatternSet set : _sets)
     39            for(int i = 0; i < _sets.size(); i++)
    4040            {
     41                PatternSet set = (PatternSet)_sets.get(i);
    4142                FileSet fs = new FileSet();
    4243                fs.setDir(_dir);
     
    4546               
    4647                DirectoryScanner ds = fs.getDirectoryScanner(this.getProject());
    47                 for (String s : ds.getIncludedFiles())
     48               
     49                String[] includedFiles = ds.getIncludedFiles();
     50                for (int j = 0; j < includedFiles.length; j++)
    4851                {
    49                     out.write(s + "\n");
     52                    out.write(includedFiles[j] + "\n");
    5053                }
    5154            }
     
    7578        }
    7679       
    77         _sets.add((PatternSet) patternset);
     80        _sets.add(patternset);
    7881    }
    7982}
Note: See TracChangeset for help on using the changeset viewer.