On 16 Nov 2005, at 15:45, Pol, Parikshit wrote:
Ant 1.5.2-23. Maybe I will try upgrading it too 1.6.
Yes, you must. Lucene's build requires Ant 1.6.x. I recommend you
get the latest release version of Ant. Ant 1.5.x required most tasks
(including <tstamp>) to be within a <target>, but Ant 1.6 loosened
that situation, thus the reason for the error you experienced.
Erik
-Parik
-----Original Message-----
From: Greg K [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 16, 2005 12:43 PM
To: java-user@lucene.apache.org
Subject: Re: Issues while doing ant on lucene source
Parikshit,
TStamp (timestamp) is a core Ant task - so it should be recognized.
What version of Ant do you have?
Greg
On 11/16/05, Pol, Parikshit <[EMAIL PROTECTED]> wrote:
Hi Folks.
I downloaded the Lucene and tried to do an ant. It initially gave me
the following error:
BUILD FAILED
file:/home/parikpol/downloads/lucene-1.4.3/build.xml:11: Unexpected
element "tstamp"
I commented out the tstamp tag from build.xml, and now it gives me
the
following errors:
compile-core:
[javac] Compiling 160 source files to /home/parikpol/downloads/
lucene-
1.4.3/build/classes/java [javac]
/home/parikpol/downloads/lucene-1.4.3/src/java/org/apache/lucene/
search/FieldCacheImpl.java:236:
error: Type `StringIndex' not found in the declaration of the return
type of method `getStringIndex'.
[javac] public StringIndex getStringIndex (IndexReader reader, String
field)
[javac] ^
[javac] /home/parikpol/downloads/lucene-1.4.3/src/java/org/apache/
lucene/search/FieldCacheImpl.java:291:
error: Type `StringIndex' not found in the declaration of the local
variable `value'.
[javac] StringIndex value = new StringIndex (retArray, mterms);
[javac] ^ [javac] 2 errors, 5 warnings
Any help would be appreciated.
Thanks.
Parik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]