You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by eh...@apache.org on 2004/01/05 16:45:55 UTC
cvs commit: jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant IndexTask.java
ehatcher 2004/01/05 07:45:55
Modified: contributions/ant/src/main/org/apache/lucene/ant
IndexTask.java
Log:
update for Ant 1.6 deprecation
Revision Changes Path
1.2 +3 -3 jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java
Index: IndexTask.java
===================================================================
RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IndexTask.java 11 Jul 2002 01:12:30 -0000 1.1
+++ IndexTask.java 5 Jan 2004 15:45:55 -0000 1.2
@@ -33,7 +33,7 @@
* file list
*/
private Vector filesets = new Vector();
-
+
/**
* overwrite index?
*/
@@ -187,7 +187,7 @@
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 @@
if (checkLastModified) {
Hits hits = null;
- Term pathTerm =
+ Term pathTerm =
new Term("path", file.getPath());
TermQuery query =
new TermQuery(pathTerm);
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org