Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [linuxtools-dev] Rebuilding with Source Modifications

Joel Dice wrote:
> Hi all,
> 
> I've been using the instructions on
> http://wiki.eclipse.org/Linux_Tools_Project/Eclipse_Build to build
> Eclipse on a Debian Lenny with good success.  However, I'm having
> trouble convincing the build to notice changes I've made to the source
> code after the initial build.  In particular, I've made a trivial change to
> build/eclipse-R3_5_1-fetched-src/plugins/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
> to make it write a message to System.out, but re-running build.sh
> appears to do nothing.
> 
> A peek at the top-level build.xml shows that it relies on several
> timestamp files to determine which stages of the build are complete.  I
> tried removing provision.sdk-stamp, which led to more logging from
> build.sh, but it still didn't recompile any source code AFAICT.
> 
> I imagine I could do a clean build, but that takes over ten minutes,
> which is prohibitive to making and testing incremental changes.  I'm
> hoping there's a better way.  Any ideas?
> 
> Thanks.
> _______________________________________________
> linuxtools-dev mailing list
> linuxtools-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/linuxtools-dev
> 


Hi

I was one of the people behind the "timestamp" part. In the past, it
would blindly remove the whole build directory and restart the build
from scratch whenever you started the build. The timestamps were added
to prevent that from blindly happening.

Have a look in build.xml near the beginning - there are all the
"checkpoint" timestamps that you can delete. You probably want to stay
clear of unpack, buildId and patch - I am not too sure how well the
build handles rerunning them without a clean (particularly patch will
probably choke).

~Niels

Attachment: signature.asc
Description: OpenPGP digital signature


Back to the top