update for Ant 1.6 deprecation

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150902 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2004-01-05 15:45:55 +00:00
parent e2ee045a97
commit 4b25907eb5
1 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ public class IndexTask extends Task {
* file list
*/
private Vector filesets = new Vector();
/**
* overwrite index?
*/
@ -187,7 +187,7 @@ public class IndexTask extends Task {
FileSet fs = (FileSet) filesets.elementAt(i);
if (fs != null) {
DirectoryScanner ds =
fs.getDirectoryScanner(project);
fs.getDirectoryScanner(getProject());
String[] dsfiles = ds.getIncludedFiles();
File baseDir = ds.getBasedir();
@ -205,7 +205,7 @@ public class IndexTask extends Task {
if (checkLastModified) {
Hits hits = null;
Term pathTerm =
Term pathTerm =
new Term("path", file.getPath());
TermQuery query =
new TermQuery(pathTerm);