|
Re: Default Platform created by buckminster [message #527956 is a reply to message #527955] |
Sat, 17 April 2010 11:58 |
|
Hi Matthias,
If you install an IDE and check out things into your workspace, they will be built against the IDE runtime itself.
That's the default behavior of Eclipse. Buckminsters default behavior is to mimic this as much as possible in order to
keep downloads to a minimum. The runtime is sufficient for a large number of builds. When it isn't, then Buckminsters
behavior is annotate the runtime with whatever extras that is needed (hence the copy). This behavior keeps the entry
level for new Buckminster users fairly low. They don't need to worry about the concept of a target platform until they
get a bit warmed up. I think that's the general idea with the IDE default behavior too.
More advanced users will most likely choose not to use the default behavior but instead define a specific target
platform. That's also what we recommend as soon as your build process reaches beyond the very basic things.
HTH,
Thomas Hallgren
On 04/17/2010 12:53 PM, Matthias Kappeller wrote:
> Hello,
>
> I've wondered about the target platform configuration created by
> buckminster if no platform (or at least only the runtime platform) is
> available.
> There is not only a new directory (.buckminster/tp) added but also the
> running eclipse platform.
>
> While looking at the Buckminster 3.6 code I've found the following lines.
>
> org.eclipse.buckminster.pde.internal.PDETargetPlatform
>
> getDefaultPlatform()
> ....
> if (dflt == null) {
> ...
> dflt = ((TargetPlatformService) service).newDefaultTargetDefinition();
> IBundleContainer runningInstance = dflt.getBundleContainers()[0];
> IBundleContainer directory =
> service.newDirectoryContainer(tpFolder.getLocation().toOSStr ing());
> dflt.setBundleContainers(new IBundleContainer[] { directory,
> runningInstance });
> dflt.setName(defaultTP);
> service.saveTargetDefinition(dflt);
> }
> ....
>
> I wonder why? Why is also the 'runningInstance' added? Maybe someone can
> give me an advise why this is required.
>
> thx and greetings
>
> Matthias
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02767 seconds