When adding the Lucene jar file to an Eclipse project you can attach the
source code to the jarfile, which allows you to step into Lucene without
actually having to build it. This is really convenient, and is easily done.
Assuming you have the Lucene jar in your project you attach the source by:

1) Right click on the jar file, choose Properties.

2) Select Java Source Attachment

3) Specify the directory containing the source code, e.g., C:\src\lucene-
1.9.1\src\java

You can also specify a zip file with the source, but I have it unzipped.

Note that you can also do this source attachment when you initially add the
jar file to the project, though I don't remember the path to do so at the
moment.

   -tree

On 5/18/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:


On May 18, 2006, at 2:17 AM, Amir Hosein Jadidi Nejad wrote:
> I want to use lucene1.9.1 in Eclipse IDE in windows platform, but i
> can't create new project with "Java Project from Existing Ant
> Buildfile" in "New Project" window.
> when i use "build.xml" in top level of lucene source folder,
> following error is occur : "specified buildfile does not contain a
> javac task".
> is anybody can help me ???

Lucene's build.xml uses some advanced techniques that it seems
Eclipse isn't dealing with.  build.xml <import>s common-build.xml
which <macrodef>s a compile task which is a wrapper around <javac>.

Are you wanting to have an Eclipse project that works with the Lucene
source code itself?  Or are you using the Lucene JAR in another
project of your own source code?  It's easy enough to create a
project in Eclipse to work with Lucene's source, ignoring build.xml.
Lucene's core has no external dependencies so simply configure a new
project with src/java for the source code.

        Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Tom Emerson
[EMAIL PROTECTED]
http://www.dreamersrealm.net/~tree

Reply via email to