Jonathan:

If you're working off trunk (and 3x), btw, there's a *great* addition
especially if you use IntelliJ (I haven't personally worked with the
Eclipse, there's a target for that too). Just get the source. Go to the top
level (e.g. apache-trunk). Execute "ant idea". Open IntelliJ and point it at
the directory via "open project".

Go into project settings and set your compiler. Wait for Idea to finish
indexing, etc. Run tests. Use ^N to find classes. Step through the code by
debugging unit tests.

Apart from the one trick of "opening project" on the folder rather than a
cute little IntelliJ icon (select the root directory), the *only* thing you
have to do is set your compiler. After having to spend *days* setting up the
IDE on some projects this is a dream. Apart from getting the source and
waiting for Idea to do its first-pass indexing, I can set up a new IDE
instance in, maybe, 5 minutes. Sweet!

And, BTW, the IntelliJ "community edition" is free and open-source now.

Best
Erick

On Wed, Jan 26, 2011 at 4:41 PM, Jonathan Rochkind <rochk...@jhu.edu> wrote:

> [Btw, this is great, thank you so much to Solr devs for providing simple
> ant-based compilation, and not making me install specific development tools
> and/or figure out how to use maven to compile, like certain other java
> projects. Just make sure ant is installed and 'ant dist', I can do that!  I
> more or less know how to write Java, at least for simple things,  but I
> still have trouble getting the right brew of required Java dev tools working
> properly to compile some projects! ]
>
>
> On 1/26/2011 4:19 PM, Erick Erickson wrote:
>
>> Sure, at the top level (above src) you should be able to just type
>> "ant dist", then look in the "dist" directory ant there should be a
>> solr<version>.war
>>
>> Best
>> Erick
>>
>> On Wed, Jan 26, 2011 at 11:43 AM, Anurag<anurag.it.jo...@gmail.com>
>>  wrote:
>>
>>  Actually i also want to edit Source Files of Solr.Does that mean i will
>>> have
>>> to go in "Src" directory of Solr and then rebuild using ant? I need not
>>> compile them or Ant will  do the whole compiling as well as updating the
>>> jar
>>> files?
>>> i have the following files in Solr-1.3.0 directory
>>>
>>> /home/anurag/apache-solr-1.3.0/build
>>> /home/anurag/apache-solr-1.3.0/client
>>> /home/anurag/apache-solr-1.3.0/contrib
>>> /home/anurag/apache-solr-1.3.0/dist
>>> /home/anurag/apache-solr-1.3.0/docs
>>> /home/anurag/apache-solr-1.3.0/example
>>> /home/anurag/apache-solr-1.3.0/lib
>>> /home/anurag/apache-solr-1.3.0/src
>>> /home/anurag/apache-solr-1.3.0/build.xml
>>> /home/anurag/apache-solr-1.3.0/CHANGES.txt
>>> /home/anurag/apache-solr-1.3.0/common-build.xml
>>> /home/anurag/apache-solr-1.3.0/KEYS.txt
>>> /home/anurag/apache-solr-1.3.0/LICENSE.txt
>>> /home/anurag/apache-solr-1.3.0/NOTICE.txt
>>> /home/anurag/apache-solr-1.3.0/README.txt
>>>
>>> and i want to edit the source code to implement my things. How should i
>>> proceed?
>>>
>>> -----
>>> Kumar Anurag
>>>
>>> --
>>> View this message in context:
>>>
>>> http://lucene.472066.n3.nabble.com/How-to-edit-compile-the-SOLR-source-code-tp477584p2355270.html
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>>
>>>

Reply via email to