tag:blogger.com,1999:blog-25095519.post71592791678111941..comments2023-06-11T08:59:53.206-05:00Comments on Andrew Niefer: Example Headless build for a RCP product with p2Anonymoushttp://www.blogger.com/profile/10918930759740557341noreply@blogger.comBlogger25125tag:blogger.com,1999:blog-25095519.post-10828238188130985822008-12-23T05:29:00.000-05:002008-12-23T05:29:00.000-05:00Andrew, thanks a lot again! I just adopted your sc...Andrew, thanks a lot again! I just adopted your scripts to my mp3 manager project. The 3.4.1 headless p2 build works very well :)<BR/><BR/>Best wishes,<BR/><BR/>KaiAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-25095519.post-69950335814552535772008-09-24T15:28:00.000-05:002008-09-24T15:28:00.000-05:00Andrew,Our last posts crossed. I'll post in the ne...Andrew,<BR/>Our last posts crossed. I'll post in the newsgroups recommended from now on. Thanks again Andrew and Richard, Mike.msacarnyhttps://www.blogger.com/profile/03913634202466880792noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-83118499570123078762008-09-24T10:13:00.000-05:002008-09-24T10:13:00.000-05:00Andrew,I've built the p2-ized headless acme exampl...Andrew,<BR/>I've built the p2-ized headless acme example and all seems well until I try and dropin plugins into the target build. That is, I unzip the acme-p2-RCP-win32-...zip and drop a plugin into the "plugins" folder (there being no "dropins" folder). The plugin does not activate or appear in the Help, About list of plugins.<BR/><BR/>I used an Exported plugin of the "Hello World" project template as a sample plugin.<BR/><BR/>If I make a Feature of the Hello plugin and Export it with metadata, then I can include it successfully via Software Updates, Available Software, etc. but shouldn't dropping into the plugins folder "just work"?<BR/><BR/>Thanks, Mikemsacarnyhttps://www.blogger.com/profile/03913634202466880792noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-81870385634228145612008-09-24T09:37:00.000-05:002008-09-24T09:37:00.000-05:00Thanks for your answer Richard. Mike, a better fo...Thanks for your answer Richard. Mike, a better forum for your questions would be the newsgroups: eclipse.platform.rcp or eclipse.platform.pde.<BR/><BR/>The simplest way to get an empty dropins folder in this example would be simply create one in the customTargets.xml/postBuild step before zipping up the result.<BR/>You could also provide one using the <A HREF="http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.pde.doc.user/tasks/pde_rootfiles.htm" REL="nofollow">rootfiles properties</A>Anonymoushttps://www.blogger.com/profile/10918930759740557341noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-45440849836382381062008-09-24T05:54:00.000-05:002008-09-24T05:54:00.000-05:00Mike,Well, there are a lot of little pieces here. ...Mike,<BR/><BR/>Well, there are a lot of little pieces here. Perhaps the best thing to do is take a look at the Amalgam project's 'DSL Toolkit' product/feature I've been working on at dev.eclipse.org/cvsroot/modeling/org.eclipse.amalgam/<BR/><BR/>The org.eclipse.amalgam.dsltk-feature project includes a feature.properties and license.html file (don't forget to add everything to build.properties), with a corresponding org.eclipse.amalgam.dsltk branding plugin, which also is where the product contribution is synchronized with the .product definition (found in the *.releng project). Between these two projects, you should find the answers.<BR/><BR/>Best,<BR/>RichRichard C. Gronbackhttps://www.blogger.com/profile/13134434976434460882noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-65923646478434279992008-09-23T15:42:00.000-05:002008-09-23T15:42:00.000-05:00Richard,Yes, I have an associated branding plugin ...Richard,<BR/>Yes, I have an associated branding plugin for the feature. This has some "about" text but I don't know where to put the license\copyright info.<BR/><BR/>When I display Feature Details, my Feature is in the list but when selected the lower dialog says "No further information is available for this feature." The Feature.xml, Information tabs have license and copyright stuff, however, it just doesn't display.<BR/><BR/>Regards,Mikemsacarnyhttps://www.blogger.com/profile/03913634202466880792noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-47934695583448471722008-09-23T12:46:00.000-05:002008-09-23T12:46:00.000-05:00Andrew,The RCP Plug in headless build does not gen...Andrew,<BR/>The RCP Plug in headless build does not generate a "dropins" folder during the build. How should this be created?<BR/><BR/>Thanks,Mikemsacarnyhttps://www.blogger.com/profile/03913634202466880792noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-2961827748819050462008-09-22T13:40:00.000-05:002008-09-22T13:40:00.000-05:00Do you have an associated branding plug-in for you...Do you have an associated branding plug-in for your feature?Richard C. Gronbackhttps://www.blogger.com/profile/13134434976434460882noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-60420683152333425092008-09-22T13:22:00.000-05:002008-09-22T13:22:00.000-05:00Adding -profileProperties to customTargets.xml aft...Adding -profileProperties to customTargets.xml after -bundlepool seems to do the trick. Thanks!<BR/><BR/>Now I just need to figure out how to get the Feature Copyright and License info to show in Help, Updates, [product], Properties. The data in feature.xml does not display for my Product.msacarnyhttps://www.blogger.com/profile/03913634202466880792noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-17465271635340323722008-09-22T05:44:00.000-05:002008-09-22T05:44:00.000-05:00Try adding this argument: -profileProperties org.e...Try adding this argument: -profileProperties org.eclipse.update.install.features=trueRichard C. Gronbackhttps://www.blogger.com/profile/13134434976434460882noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-27355184094846827032008-09-18T15:37:00.000-05:002008-09-18T15:37:00.000-05:00Andrew,I've made progress on a Feature-based produ...Andrew,<BR/>I've made progress on a Feature-based product using 3.4.1RC3.<BR/>* I added a Feature com.acme.rcp.feature with ID com.acme.rcp and branding com.acme.rcp. This Feature has plugin com.acme.rcp.<BR/>* I changed acme.product configuration to be feature-based and added the following features:<BR/>- com.acme.rcp<BR/>- org.eclipse.rcp<BR/>- org.eclipse.equinox.p2.user.ui<BR/>- org.eclipse.platform<BR/>* I changed the launch app to org.eclipse.ui.ide.workbench.<BR/>* I changed the Build acme launch config so that:<BR/>-DpluginPath=${resource_loc:/com.acme.rcp};${resource_loc:/com.acme.rcp.feature}<BR/><BR/>When I do this, the product builds and runs! However, the Feature Details button is missing from Help, About. There is no Features folder in the zipped product.<BR/><BR/>If I launch from the workbench (acme.product, Overview, Testing, Launch) then Feature Details is present, but com.acme.rcp is not in the list of features.<BR/><BR/>Your example has been so helpful. Any idea what may be wrong here?<BR/>Thanks, Mikemsacarnyhttps://www.blogger.com/profile/03913634202466880792noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-5849025734320272042008-09-17T12:21:00.000-05:002008-09-17T12:21:00.000-05:00Kai, I'm seeing this as well. I don't really have...Kai, I'm seeing this as well. I don't really have time to figure why this was working previously but not now.<BR/><BR/>I would suggest using a 3.4.1 build (<A HREF="http://download.eclipse.org/eclipse/downloads/drops/M-3.4.1RC3-200809111700/index.php" REL="nofollow">RC3 is here</A>) and including the simpleconfigurator in the plugins list.<BR/><BR/>msacarny, you should be able to just change the .product file to be based on features. I would also suggest using 3.4.1 where some of the bugs mentioned in the post are fixed.Anonymoushttps://www.blogger.com/profile/10918930759740557341noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-38823597019273634822008-09-17T03:07:00.000-05:002008-09-17T03:07:00.000-05:00Hi Andrew,thanks for the article. I followed your ...Hi Andrew,<BR/><BR/>thanks for the article. I followed your instructions and getting errors during the director run (Windows Vista, Java 6 update 10, Eclipse 3.4 + Delta Pack). I only displayed the first of a long row of unsatisfied dependencies:<BR/><BR/>run.director:<BR/> [exec] Installing com.acme.rcp.product 1.0.0.v200809170951.<BR/> ...<BR/> [exec] <BR/> [exec] !ENTRY org.eclipse.equinox.p2.director 2 0 2008-09-17 09:56:00.072<BR/> [exec] !MESSAGE Problems resolving provisioning plan.<BR/> [exec] !SUBENTRY 1 org.eclipse.equinox.p2.director 2 0 2008-09-17 09:56:00.073<BR/> [exec] !MESSAGE Unable to satisfy dependency from org.eclipse.equinox.p2.ui 1.0.0.v20080530-1237 to requiredCapability: osgi.bundle/org.eclipse.equinox.simpleconfigurator/0.0.0.<BR/> ....<BR/> [exec] Result: 13<BR/><BR/>Any hints?<BR/><BR/>Thanks<BR/><BR/>KaiAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-25095519.post-9886397171364856462008-09-15T08:59:00.000-05:002008-09-15T08:59:00.000-05:00Your example is for a Plugin based product, which ...Your example is for a Plugin based product, which I got working. I'm trying to extend the example to a Feature-based product, so I can include additional Features and plugins. I'm trying to puzzle out how to reconcile this with the org.eclipse.pde.build.container.feature scripts.msacarnyhttps://www.blogger.com/profile/03913634202466880792noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-16473343349656484082008-09-12T15:18:00.000-05:002008-09-12T15:18:00.000-05:00The example is expected to have a launcher in the ...The example is expected to have a launcher in the result and be runnable. Do you have the delta-pack installed? The executable is expected to come from org.eclipse.equinox.executable feature which is in the delta-pack.<BR/><BR/>> Any directions on the Feature version?<BR/>I'm not clear on what you are asking here.Anonymoushttps://www.blogger.com/profile/10918930759740557341noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-34294595459540895212008-09-12T13:35:00.000-05:002008-09-12T13:35:00.000-05:00I've got this working as a plug in. Thanks. Any di...I've got this working as a plug in. Thanks. Any directions on the Feature version?msacarnyhttps://www.blogger.com/profile/03913634202466880792noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-49790111155084767402008-09-10T14:50:00.000-05:002008-09-10T14:50:00.000-05:00Great article!Newbie question: When I build the ex...Great article!<BR/>Newbie question: When I build the example, the resulting zip has no eclipse.exe or custom launcher. As intended?<BR/><BR/>If this is not standalone, then what is the recommended install technique? Copy result over existing clean RCP Eclipse?<BR/><BR/>Thanks!msacarnyhttps://www.blogger.com/profile/05389003873016568634noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-89741410552149016312008-09-02T19:59:00.000-05:002008-09-02T19:59:00.000-05:00Found your online home...PeterFound your online home...<BR/><BR/>PeterUnknownhttps://www.blogger.com/profile/04740767205114448480noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-88402400021102187772008-08-29T12:55:00.000-05:002008-08-29T12:55:00.000-05:00Sorry Igor, I haven't seen that problem before. Y...Sorry Igor, I haven't seen that problem before. You should open a bug on the Equinox Framework with that stack trace and any other details.Anonymoushttps://www.blogger.com/profile/10918930759740557341noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-66009132882683065052008-08-28T05:59:00.000-05:002008-08-28T05:59:00.000-05:00Hello Andrew,First of all thanks a lot for the art...Hello Andrew,<BR/><BR/>First of all thanks a lot for the articles. But I still have some problems running it. During the run.director target im getting following nullpointerexception:<BR/>run.director:<BR/> [exec] Installing com.acme.rcp.product 1.0.0.v200808281244.<BR/> [exec] Operation completed in 20656 ms.<BR/> [exec] java.lang.NullPointerException<BR/> [exec] at org.eclipse.osgi.framework.internal.core.AbstractBundle.getBundleDescription(AbstractBundle.java:1337)<BR/> [exec] at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureMessage(AbstractBundle.java:1376)<BR/> [exec] at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)<BR/> [exec] at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)<BR/> [exec] at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)<BR/> [exec] at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)<BR/> [exec] at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:427)<BR/> [exec] at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)<BR/> [exec] at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)<BR/> [exec] at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)<BR/> [exec] at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:432)<BR/> [exec] at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)<BR/> [exec] at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)<BR/> [exec] at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)<BR/> [exec] at java.lang.ClassLoader.loadClass(Unknown Source)<BR/> [exec] at java.lang.ClassLoader.loadClassInternal(Unknown Source)<BR/> [exec] at org.eclipse.equinox.internal.p2.engine.MetadataCache$1.notify(MetadataCache.java:81)<BR/> [exec] at org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEvent(ProvisioningEventBus.java:86)<BR/> [exec] at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)<BR/> [exec] at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)<BR/><BR/>And there is no ACMEProfile.profile, so I cant delete it. Despite this exception the build is always successful and I can find the App under results. But after launching it, Im getting following Exception in the log file:<BR/>java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).<BR/> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)<BR/> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)<BR/> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)<BR/> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<BR/> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<BR/> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<BR/> at java.lang.reflect.Method.invoke(Unknown Source)<BR/> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)<BR/> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)<BR/> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)<BR/><BR/>Do You have any idea, what went wrong? Thank you for your help.<BR/><BR/>Igor.Igorhttps://www.blogger.com/profile/12949349953199806918noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-67330386157065445522008-08-08T14:08:00.000-05:002008-08-08T14:08:00.000-05:00Richard,I fixed the typo and updated the zip on th...Richard,<BR/>I fixed the typo and updated the zip on the <A HREF="https://bugs.eclipse.org/bugs/show_bug.cgi?id=237537" REL="nofollow">bug</A>.<BR/><BR/>Unfortunately, the p2 metadata generation happens too late in the process to take advantage of the assembly call backs. So add platforms must be done by adding more calls in the post build.<BR/><BR/>I will be reviewing all of this for 3.5. The current integration is really just about generating metadata, we want to bring this forward and have the actual install done automatically as well.Anonymoushttps://www.blogger.com/profile/10918930759740557341noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-89331396399923248332008-07-24T08:48:00.000-05:002008-07-24T08:48:00.000-05:00Thanks, this was helpful. I only wish I had paid ...Thanks, this was helpful. I only wish I had paid closer attention to the "don't include the simpleconfigurator" bundle tip at the bottom ;)<BR/><BR/>BTW, there's a typo in customTargets.xml (%{buildDirectory} > ${buildDirectory}). I made additional changes to build on the Mac, but then didn't find an easy way to account for multiple target platform builds. I'd have expected I could have used a customAssembly.xml for this, but no luck. Do you have a suggestion for this, and are there plans to make the p2-ification of product builds easier in the future? (e.g. adding/generating a set of director Ant tasks for accomplishing this in a more "native" way).<BR/><BR/>Thanks again,<BR/>RichRichard C. Gronbackhttps://www.blogger.com/profile/13134434976434460882noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-66530166815051728992008-06-18T18:00:00.000-05:002008-06-18T18:00:00.000-05:00I have a wiki setup for PDEhttp://wiki.eclipse.org...I have a wiki setup for PDE<BR/><BR/>http://wiki.eclipse.org/PDE<BR/><BR/>The PDE Build section is empty ;o!Chris Aniszczyk (zx)https://www.blogger.com/profile/14067673601779593093noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-34784387934119120052008-06-18T15:43:00.000-05:002008-06-18T15:43:00.000-05:00I wasn't quite sure where to put mini articles/tut...I wasn't quite sure where to put mini articles/tutorials like this. But I've just noticed we have a pde-build-home project in cvs that shows up as http://www.eclipse.org/pde/pde-build<BR/>That page probably deserves a facelift.Anonymoushttps://www.blogger.com/profile/10918930759740557341noreply@blogger.comtag:blogger.com,1999:blog-25095519.post-23403381954753072162008-06-18T14:05:00.000-05:002008-06-18T14:05:00.000-05:00Thanks Andrew, I see those commit rights to PDE Do...Thanks Andrew, I see those commit rights to PDE Doc has helped a bit ;)Chris Aniszczyk (zx)https://www.blogger.com/profile/14067673601779593093noreply@blogger.com