Continuous build for RCP apps.
Setting up a continous build for RCP is not as easy as it should be. It took me approx. 1 day to make it work (being interrupted all the time) . This is how I did :
I used at first PDE Automation, but this article which can be found on eclipse.org is really outdated.
This page has all you have to know : Help : pde_product_build
Looks like it’s simple, isn’t it ? Well there are issues when you do it for real :
- My rcp app is based on several plugins, with dependencies between each other. The build process seems to just ignore these dependencies and start compiling some plugins before the one on wich they depends. And the process fails. I had to move features order in my product definition to fix the compilation. (maybe some dependencies issues in my features, I have to check that)
- Once, the build worked for one platform, I tried to make it produce an archive for each platform. The build process is supposed to support this by adding several platform to the configs properties. Actually, only the first one is correctly build, and the second one does not include the RCP feature (not useable). I had to make 3 different config and call the build 3 times in a row to produce the files for win32, linux, and macos.
- Finally, I looked for an Intel Mac target, but this config is not supported, simply because the packaging is exactly the same as PPC Mac. You can safely use macosx, carbon, ppc as target for all macs (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=138047)
I added my own scripts to check out my app from SVN (only CVS is supported by automated builds) and to deploy the builds to my web server. The build is call from cron. Everything works ![]()
(As usual, I’ll post these issues to bugzilla asap)






