Compiling ES source

Hello,

I have been trying to hook up the ES source in Eclipse IDE. But I cannot
figure out how to create the classpath entries for the sources that have
been transformed with respect to packages names. E.g the logging
frameworks etc. The jarjar jar I have created and that fulfills most of
the dependencies, but not all. I still have like 3500 errors due to
missing classes. Where and how are those external classes "transformed"
into org.elasticsearch? I have spent numrous hours to try figure that
out but it eludes me...

Compiling it all with gradle works nicely, but that is not what I want
to do as I am digging around in the code figuring out how things work
(in order to customize some things for Swedish use).

--
Med vänlig hälsning
Kristian Jörg

Devo IT AB
Tel: 054 - 22 14 58, 0709 - 15 83 42
E-post: kristian.jorg@devo.se
Webb: http://www.devo.se

Hi,

why don't you try IntelliJ IDEA instead? Its community edition should allow
you to explore the code very easily. Check here for some older wiki page
about how to setup the code in IDEA

(may
be this document needs to be updated).

Regards,
Lukas

On Fri, Feb 4, 2011 at 2:01 PM, Kristian Jörg krjg@devo.se wrote:

Hello,

I have been trying to hook up the ES source in Eclipse IDE. But I cannot
figure out how to create the classpath entries for the sources that have
been transformed with respect to packages names. E.g the logging frameworks
etc. The jarjar jar I have created and that fulfills most of the
dependencies, but not all. I still have like 3500 errors due to missing
classes. Where and how are those external classes "transformed" into
org.elasticsearch? I have spent numrous hours to try figure that out but it
eludes me...

Compiling it all with gradle works nicely, but that is not what I want to
do as I am digging around in the code figuring out how things work (in order
to customize some things for Swedish use).

--
Med vänlig hälsning
Kristian Jörg

Devo IT AB
Tel: 054 - 22 14 58, 0709 - 15 83 42
E-post: kristian.jorg@devo.se
Webb: http://www.devo.se

Yes, it's a way to go. Unfortunately the page you link to is down
now. I read it briefly two days ago, and has already forgotten...




I have been using Eclipse for the last 5 years or so and would
rellay not like to learn another tool though. What I need for
getting eclipse on its feet though is to create those classes with
transformed names like the logging frameworkes etc. Is there some
way to create them in a temp/build or jar file somewhere. It is a
mysteru for me where they actually hook up with the build. Is it a
gradle built-in function or is it something external? The files that
end up in the jarjar jar I have found. Where are the rest?




Lukáš Vlček skrev 2011-02-04 15:09:
<blockquote cite="mid:AANLkTi=+k6Hc6uaZQ=xH+yadA-u9cLSmP_O3111kp8B7@mail.gmail.com" type="cite">Hi,

why don't you try IntelliJ IDEA instead? Its community
edition should allow you to explore the code very easily. Check
here for some older wiki page about how to setup the code in
IDEAÂ

https://github.com/elasticsearch/elasticsearch/wiki/Getting-started-with-the-source-code (may
be this document needs to be updated).

Hi,

elasticsearch page has been redesigner recently. The page can be now found
here:

http://www.elasticsearch.org/tutorials/2010/07/03/getting-started-with-sourcecode.htmlI
haven't been using Eclipse recently so I can not answer your question in
further detail (but I think there should be plp on ML using Eclipse),
however, as someone who was using NetBeans, Eclipse and IDEA I can tell you
that it is worth the time to look at IDEA :slight_smile:

Regards,
Lukas

On Tue, Feb 8, 2011 at 12:17 PM, Kristian Jörg krjg@devo.se wrote:

Yes, it's a way to go. Unfortunately the page you link to is down now. I
read it briefly two days ago, and has already forgotten...

I have been using Eclipse for the last 5 years or so and would rellay not
like to learn another tool though. What I need for getting eclipse on its
feet though is to create those classes with transformed names like the
logging frameworkes etc. Is there some way to create them in a temp/build or
jar file somewhere. It is a mysteru for me where they actually hook up with
the build. Is it a gradle built-in function or is it something external? The
files that end up in the jarjar jar I have found. Where are the rest?

Lukáš Vlček skrev 2011-02-04 15:09:

Hi,

why don't you try IntelliJ IDEA instead? Its community edition should
allow you to explore the code very easily. Check here for some older wiki
page about how to setup the code in IDEA
GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search Engine (may
be this document needs to be updated).

Hi again,




and sorry for all confusion on my part. I did succed to compile
eventually on Eclipse. The "transformed" classes that I was speaking
of was just a confused interpretation of some other problem. After I
reopened the project in Eclipse and did a full rebuild I got the
code to build with no problems. So far only the main project, but
the others should be no problem. Also running ES worked fine inside
Eclipse.




Well, the one thing I miss in Eclipse is support for sub modules in
the same project, which it seems IDEA has. That may be the ONLY
thing that may force me from my beloved Eclipse. Maven support is
heavily dependent on sub modules, and the support in Eclipse to try
to cover this is clumsy at best. But it works...




I also got it running in IDEA.




Thanks for all help!




/Kristian




Lukáš Vlček skrev 2011-02-08 12:51:
<blockquote cite="mid:AANLkTi=eMQ7VHyYxMXw2V2ZgNxk9myZi9-Y3o9yQ28b=@mail.gmail.com" type="cite">Hi,

elasticsearch page has been redesigner recently. The page can
be now found here:Â

http://www.elasticsearch.org/tutorials/2010/07/03/getting-started-with-sourcecode.html

I haven't been using Eclipse recently so I can not answer
your question in further detail (but I think there should be plp
on ML using Eclipse), however, as someone who was using
NetBeans, Eclipse and IDEA I can tell you that it is worth the
time to look at IDEA :slight_smile:

Regards,Lukas

On Tue, Feb 8, 2011 at 12:17 PM,
Kristian Jörg <krjg@devo.se>
wrote:

Yes, it's a way to go. Unfortunately the page you link to is down now. I read it briefly two days ago, and has already forgotten...
          I have been using Eclipse for the last 5 years or so and
          would rellay not like to learn another tool though. What I
          need for getting eclipse on its feet though is to create
          those classes with transformed names like the logging
          frameworkes etc. Is there some way to create them in a
          temp/build or jar file somewhere. It is a mysteru for me
          where they actually hook up with the build. Is it a gradle
          built-in function or is it something external? The files
          that end up in the jarjar jar I have found. Where are the
          rest?




          Lukáš Vlček skrev 2011-02-04 15:09:
          <blockquote type="cite">Hi,

why don't you try IntelliJ IDEA instead? Its
community edition should allow you to explore the
code very easily. Check here for some older wiki
page about how to setup the code in IDEA https://github.com/elasticsearch/elasticsearch/wiki/Getting-started-with-the-source-code (may

                be this document needs to be updated).</blockquote>
-- 
Med vänlig hälsning
Kristian Jörg

Devo IT AB
Tel: 054 - 22 14 58, 0709 - 15 83 42
E-post: kristian.jorg@devo.se
Webb: http://www.devo.se