Yep, as you've discovered, the import from ant build file doesn't work for
the solr build.xml in eclipse.

There is an excellent how-to for getting Solr up and running in Eclipse for
debugging purposes here:
http://www.lucidimagination.com/developers/artiicles/setting-up-apache-solr-in-eclipse

Once you have the setup in place from the above tutorial, you can then go to
any of the Solr Jar files and attach the source, which will allow you to
debug into and modify the Solr code.  If you need to step into any of the
lucene code you'll have to pull it down separately, but you can attach the
same way.  The last step (after you've made your changes) is that you would
just need to rebuild with Ant (run "ant" from the directory containing the
build.xml file to see the build options for Solr).  I think that just
running "ant example" there should do the trick.

-Trey

On Thu, Mar 11, 2010 at 12:07 PM, JavaGuy84 <bbar...@gmail.com> wrote:

>
> Hi,
>
> Sorry for asking this very simple question but I am very new to SOLR and I
> want to play with its source code.
>
> As a initial step I have a requirement to enable wildcard search (*text) in
> SOLR. I am trying to figure out a way to import the complete SOLR build to
> Eclipse and edit QueryParsing.java file but I am not able to import (I
> tried
> to import with ant project in Eclipse and selected the build.xml file and
> got an error stating javac is not present in the build.xml file).
>
> Can someone help me out with the initial steps on how to import / edit /
> compile / test the SOLR source?
>
> Thanks a lot for your help!!!
>
> Thanks,
> B
> --
> View this message in context:
> http://old.nabble.com/How-to-edit---compile-the-SOLR-source-code-tp27866410p27866410.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Reply via email to