[kepler-dev] Problem fix when building Kepler via both Eclipse Ant + Eclipse Project
tohagan at itee.uq.edu.au
Wed Jun 6 18:36:08 PDT 2007
I had similar build times prior to excluding the "build/" directory.
I agree that I may not have completely nailed this problem.
The slow builds seemed to go away and then later reoccur.
What I suspected was happening was that the ant build copied java source
code into the build folder. This code would be recompiled by Eclipse unless
it was excluded. I suspect that Eclipse may also be recopying other
resource files it found in this folder.
I now tend to just use ant (inside Eclipse) for building. I figured that
this was the main approach used by the Kepler/Ptolemy teams. However,
having a successful Eclipse project build is very useful for reverse
engineering source code using Eclipse features.
> -----Original Message-----
> From: Chad Berkley [mailto:berkley at nceas.ucsb.edu]
> Sent: Thursday, 7 June 2007 11:13 AM
> To: Derik Barseghian
> Cc: Tony O'Hagan; kepler-dev at ecoinformatics.org
> Subject: Re: [kepler-dev] Problem fix when building Kepler via both
> Eclipse Ant + Eclipse Project
> 14 minutes!? With ant it never takes me more than a 1.5 minutes on a
> fully clean build. Something must be broken with the eclipse build.
> Derik Barseghian wrote:
> > Hi Tony,
> > I'm also using Eclipse to build and work on Kepler, though am new to
> > both. I agree, the build time for Kepler is long! I've just tried
> > building before and then after following your instructions below, but
> > Eclipse took the same amount of time each time--a little over 14 minutes
> > (dual 3ghz machine). How much time did you save when excluding "build/"?
> > I have noticed that right after a build, any consecutive builds without
> > changes will occur nearly instantly...I suspect Eclipse isn't really
> > doing anything when it sees nothing has changed. Was this maybe what you
> > saw?
> > Derik
> > On Wed, 2007-06-06 at 15:11 +1000, Tony O'Hagan wrote:
> >> I found that when building Kepler+Ptolemy using Eclipse Project and
> >> Ant that you can get into what I suspect is an infinite build loop or
> >> least a very long and slow build (I ran out of patience and aborted
> >> several times).
> >> To avoid this you need to exclude the "build/" subdirectory from the
> >> kepler/ptII build path. I'd recommend that .classpath.default be
> updated to
> >> reflect this change (I don't have CVS write access).
> >> Step by Step:
> >> 1. Select Eclipse 'kepler' project
> >> 2. View project properties via the context menu.
> >> 3. Select 'Java build path'
> >> 4. Select the 'Source' tab
> >> 5. Under the 'kepler/ptII' source tree select the 'Excluded' tree node
> >> 6. Click the 'Edit' button
> >> 7. Click the lower 'Add' button beside the Exclusion patterns.
> >> 8. Enter 'build/' in the pop up window.
> >> 9. Save & Close all dialogs.
> >> Cheers,
> >> Tony O'Hagan
> >> http://itee.uq.edu.au/~tohagan
> >> http://tony.ohagan.name
> >> _______________________________________________
> >> Kepler-dev mailing list
> >> Kepler-dev at ecoinformatics.org
> >> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-
> > _______________________________________________
> > Kepler-dev mailing list
> > Kepler-dev at ecoinformatics.org
> > http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
More information about the Kepler-dev