Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Specifying a specific set of ws/os/arch for a p2 site
Specifying a specific set of ws/os/arch for a p2 site [message #998098] Wed, 09 January 2013 06:18 Go to previous message
Tobias Bertelsen is currently offline Tobias Bertelsen
Messages: 16
Registered: October 2011
Junior Member
Hi there.

I will like to create a P2 site for a specific list of ws/os/arch combinations, e.g., win32,win32,x86, and cocoa,macosx,x64 but nothing else.


The situation
As I see the current solution I have these options:
1. Create a P2 site for only only one ws/os/arch combination
2. Use '*' to create a p2 for all platforms.
As all of ws/os/arch differs, I must use */*/*.

As I only have support for win32,win32,x86, and cocoa,macosx,x64 I can do one of two workarounds. Both are pretty bad i my oppinion:
1. Create bogus bundles for all other platforms, and create a p2 site for all platforms, that only work for some
2. Create different p2 sites, meaning more work building and more confusion from the user side.

I have looked in the buckminster source code, more specifically
org.eclipse.buckminster.pde.internal.actor.P2SiteGenerator.getConfigurations()
It seems to me, that using '*' is really my only option, but it can be changed rather simple by changing that method.


The question
Am I missing some smart trick, that allows me to specify a specific list of environments?


The suggestion
If it is not possible, could you consider adding this functionality. I'm thinking something like this:
The user specifies a property 'target.environments' with a list of environments, that take priority over the normal ws/os/arch properties:

E.g. The user specifies:
target.environments=win32.win32.x86;cocoa.macosx.x64

In the start of getConfigurations() the following is added:
String environments = props.get("target.environments").toString();
if(environments != null) {
  return environments.split(';');
}




Thanks for all your work Smile
Tobias

[Updated on: Wed, 09 January 2013 06:19]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:[Buckminster headless] Workspace overlap error
Next Topic:Not able to send email after build runs..
Goto Forum:
  


Current Time: Mon May 20 11:36:36 EDT 2013

Powered by FUDForum. Page generated in 0.02479 seconds