Eclipse/Ant build strategies

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Eclipse/Ant build strategies

Ken Krugler-2
Hi all,

I'm curious whether there are other Nutch developers out there are
using Eclipse (I've got 3.0 on Mac OS X 10.3), and if so, if/how they
configure things to leverage the Ant build while still being able to
edit/build/debug source files using Eclipse.

I searched the archives, and found a post by Jason Tang where he said
that "Eclipse works fine!", but nothing else. I'm wondering how he
(and others) have configured things to be able to modify, then
build/debug Lucene, Nutch, and custom plug-ins.

I'm asking here first, in case somebody has an existing configuration
that works. If this isn't something that anybody does, then I'll
re-post to the Eclipse developer list.

Thanks,

-- Ken
--
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse/Ant build strategies

Isabel Drost
On Monday 20 June 2005 Ken Krugler wrote:

Hello Ken,

> I'm curious whether there are other Nutch developers out there are
> using Eclipse (I've got 3.0 on Mac OS X 10.3), and if so, if/how they
> configure things to leverage the Ant build while still being able to
> edit/build/debug source files using Eclipse.

Currently I am also working with 3.0 yet on Debian Sarge. It actually works
fine.

For building the source code I have configured Ant as Builder for the project.
Simply have a look at the properties of your nutch project, at the menu entry
builders you can add the Ant Builder, choose the ant-xml file shipped with
nutch and select the build targets that fit your needs.

For Debugging and Running the code I had to add the class directories as
"libraries". If you have a look at the menu entry Java Build Path, there is
one tab named libraries. There you also can add class folders. Last thing to
do is to generate a so called run configuration. As main class you just
select the class corresponding to the part of nutch you want to debug, add
approriate parameters and run or debug your code.

I do not know whether my configuration is the ideal one, but at least it
works :)


--
QOTD: Life is like a simile.
  |\      _,,,---,,_    
  /,`.-'`'    -.  ;-;;,_  More information about the
 |,4-  ) )-,_..;\ (  `'-' sender of this mail available
'---''(_/--'  `-'\_) (fL) at http://www.isabel-drost.de ;)
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse/Ant build strategies

American Jeff Bowden
In reply to this post by Ken Krugler-2
Ken Krugler wrote:

> Hi all,
>
> I'm curious whether there are other Nutch developers out there are
> using Eclipse (I've got 3.0 on Mac OS X 10.3), and if so, if/how they
> configure things to leverage the Ant build while still being able to
> edit/build/debug source files using Eclipse.
>
> I searched the archives, and found a post by Jason Tang where he said
> that "Eclipse works fine!", but nothing else. I'm wondering how he
> (and others) have configured things to be able to modify, then
> build/debug Lucene, Nutch, and custom plug-ins.
>
> I'm asking here first, in case somebody has an existing configuration
> that works. If this isn't something that anybody does, then I'll
> re-post to the Eclipse developer list.
>
> Thanks,
>
> -- Ken


I just started using a hacked up version of ect.  I got the original
from http://www.joeygibson.com/projects/ect/ but I changed it to also
extract the src path.  My version is here:
http://dist.distractionlabs.com/java/ant/ect-2005-06-21.tar.gz.

What it allows you to do is drop a generic-ish build.xml file into any
eclipse project which then uses the src and classpath specified in the
eclipse .classpath file.  This allows me to use eclipse to manage my
classpath which is quite convenient but then to also build from the
command-line for deployment purposes.


Reply | Threaded
Open this post in threaded view
|

Re: Eclipse/Ant build strategies

kkrugler
>>I'm curious whether there are other Nutch developers out there are
>>using Eclipse (I've got 3.0 on Mac OS X 10.3), and if so, if/how
>>they configure things to leverage the Ant build while still being
>>able to edit/build/debug source files using Eclipse.
>>
>>I searched the archives, and found a post by Jason Tang where he
>>said that "Eclipse works fine!", but nothing else. I'm wondering
>>how he (and others) have configured things to be able to modify,
>>then build/debug Lucene, Nutch, and custom plug-ins.
>>
>>I'm asking here first, in case somebody has an existing
>>configuration that works. If this isn't something that anybody
>>does, then I'll re-post to the Eclipse developer list.

Thanks to Jeff & Isabel for their feedback.

The problem I'm running into now is that I'll modify some Lucene
code, then start a debugging session. Eclipse correctly fires up the
Ant build to recreate the JAR, but it appears to have a cached copy
of the source code if I've done a previous debugging session
involving that same source file. I have to quit & relaunch Eclipse or
manually re-attach the source to the JAR to get things in sync again.

I realize this isn't a Nutch-specific development issue, so I'll try
on the Eclipse list.

Thanks again,

-- Ken
--
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200
Reply | Threaded
Open this post in threaded view
|

RE: Eclipse/Ant build strategies

Nick Lothian
In reply to this post by Ken Krugler-2
You might need to set "refresh resources upon completion" on your Ant
builder (Project->Properties->Builders->(Select ant builder you have
configured)->Edit->Refresh Tab)

Nick  

> -----Original Message-----
> From: Ken Krugler [mailto:[hidden email]]
> Sent: Wednesday, 22 June 2005 2:58 AM
> To: [hidden email]
> Subject: Re: Eclipse/Ant build strategies
>
> >>I'm curious whether there are other Nutch developers out there are
> >>using Eclipse (I've got 3.0 on Mac OS X 10.3), and if so,
> if/how they
> >>configure things to leverage the Ant build while still
> being able to
> >>edit/build/debug source files using Eclipse.
> >>
> >>I searched the archives, and found a post by Jason Tang
> where he said
> >>that "Eclipse works fine!", but nothing else. I'm wondering how he
> >>(and others) have configured things to be able to modify, then
> >>build/debug Lucene, Nutch, and custom plug-ins.
> >>
> >>I'm asking here first, in case somebody has an existing
> configuration
> >>that works. If this isn't something that anybody does, then I'll
> >>re-post to the Eclipse developer list.
>
> Thanks to Jeff & Isabel for their feedback.
>
> The problem I'm running into now is that I'll modify some
> Lucene code, then start a debugging session. Eclipse
> correctly fires up the Ant build to recreate the JAR, but it
> appears to have a cached copy of the source code if I've done
> a previous debugging session involving that same source file.
> I have to quit & relaunch Eclipse or manually re-attach the
> source to the JAR to get things in sync again.
>
> I realize this isn't a Nutch-specific development issue, so
> I'll try on the Eclipse list.
>
> Thanks again,
>
> -- Ken
> --
>
> Ken Krugler
> TransPac Software, Inc.
> <http://www.transpac.com>
> +1 530-470-9200
>


IMPORTANT: This e-mail, including any attachments, may contain private or confidential information. If you think you may not be the intended recipient, or if you have received this e-mail in error, please contact the sender immediately and delete all copies of this e-mail. If you are not the intended recipient, you must not reproduce any part of this e-mail or disclose its contents to any other party.
This email represents the views of the individual sender, which do not necessarily reflect those of education.au limited except where the sender expressly states otherwise.
It is your responsibility to scan this email and any files transmitted with it for viruses or any other defects.
education.au limited will not be liable for any loss, damage or consequence caused directly or indirectly by this email.
Reply | Threaded
Open this post in threaded view
|

RE: Eclipse/Ant build strategies

kkrugler
>You might need to set "refresh resources upon completion" on your Ant
>builder (Project->Properties->Builders->(Select ant builder you have
>configured)->Edit->Refresh Tab)

Thanks - yes, I tried that and it didn't seem to work.

Since I'm using Ant to build .class files, my next idea is to no
longer include the JAR, but just the folder containing the class
files.

-- Ken



>  > -----Original Message-----
>>  From: Ken Krugler [mailto:[hidden email]]
>>  Sent: Wednesday, 22 June 2005 2:58 AM
>>  To: [hidden email]
>>  Subject: Re: Eclipse/Ant build strategies
>>
>>  >>I'm curious whether there are other Nutch developers out there are
>>  >>using Eclipse (I've got 3.0 on Mac OS X 10.3), and if so,
>>  if/how they
>>  >>configure things to leverage the Ant build while still
>>  being able to
>>  >>edit/build/debug source files using Eclipse.
>>  >>
>>  >>I searched the archives, and found a post by Jason Tang
>>  where he said
>>  >>that "Eclipse works fine!", but nothing else. I'm wondering how he
>>  >>(and others) have configured things to be able to modify, then
>>  >>build/debug Lucene, Nutch, and custom plug-ins.
>>  >>
>>  >>I'm asking here first, in case somebody has an existing
>>  configuration
>>  >>that works. If this isn't something that anybody does, then I'll
>>  >>re-post to the Eclipse developer list.
>>
>>  Thanks to Jeff & Isabel for their feedback.
>>
>>  The problem I'm running into now is that I'll modify some
>>  Lucene code, then start a debugging session. Eclipse
>>  correctly fires up the Ant build to recreate the JAR, but it
>>  appears to have a cached copy of the source code if I've done
>>  a previous debugging session involving that same source file.
>>  I have to quit & relaunch Eclipse or manually re-attach the
>>  source to the JAR to get things in sync again.
>>
>>  I realize this isn't a Nutch-specific development issue, so
>>  I'll try on the Eclipse list.
>>
>>  Thanks again,
>>
>  > -- Ken


--
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200