You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Pol, Parikshit" <pa...@amazon.com> on 2005/11/16 21:01:37 UTC

Issues while doing ant on lucene source

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

Re: Issues while doing ant on lucene source

Posted by Dan Armbrust <da...@gmail.com>.
Pol, Parikshit wrote:
> Hi Folks.
> I downloaded the Lucene and tried to do an ant. It initially gave me the following error:
...

Are you using a current version of ant?

Lucene 1.4.3 should already be fully built when you downloaded it - you 
shouldn't have to compile it.

If you want the "current" code, then you should compile the code that is 
in subversion right now.

Dan


-- 
****************************
Daniel Armbrust
Biomedical Informatics
Mayo Clinic Rochester
daniel.armbrust(at)mayo.edu
http://informatics.mayo.edu/

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Issues while doing ant on lucene source

Posted by Greg K <gr...@gmail.com>.
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 <pa...@amazon.com> 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
>
>