Skip to content

Apache Lucene open-source search software

update for Ant 1.6 deprecation

Erik Hatcher4b25907eb580
diff --git a/sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java b/sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java
index 7781f5eb46e..36af038cfc0 100644
--- a/sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java
+++ b/sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java
@@ -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);