Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Project with only P2 Director but no Git Clone nor Stream
Project with only P2 Director but no Git Clone nor Stream [message #1745779] Mon, 17 October 2016 13:23 Go to next message
Michael Vorburger is currently offline Michael VorburgerFriend
Messages: 103
Registered: July 2009
Senior Member
Hello,

I'd like / need to create a (sub) Project which has only P2 Director.

As far as I understand, this currently intentionally doesn't seem to be possible?

I've figured, through some trial and error, that unless you put a Git Clone AND Stream into a Project, it won't show up in the Import Projects list... so, for now, I'm working around this limitation by putting a fake (empty) Git repo into my sub-project with the P2 Director - but that seems a bit dumb.

The full background / story reason why I'd like / need to create a (sub) Project which has only P2 Director is that I'd like to let the end-users of my setup model choose the installation of a few non-critical nice to have addtional Eclipse plugins... so I have some core must have Repository and Requirement in a "root" P2 Director, and then more ones in additional P2 Directors in sub projects of the setup model. Those don't have any "real" projects (with code), so e.g. no Git Clone AND Stream, those sub-project serve only to let the end-user pick the optional plugins. (There are, of course, other "real" Oomph sub-projects to select the code project, also.)

Even more background: This is partly motivated by the parallel Forum thread "Stuck doing something/looping around (not deadlock) in SignatureBlockProcessor", where some plugins are temporarily causing issues with others. But even if there were no such technical issues, letting end-users chose some optional plugins is a useful thing to offer IMHO. (And something I've been wanting to offer end-users before the problems that the other thread is about; this is just a pressing reason for me to finally do it now.)

Would you consider make it possible to allow projects containing only P2 Director?

Thanks a lot,
Michael
Re: Project with only P2 Director but no Git Clone nor Stream [message #1745781 is a reply to message #1745779] Mon, 17 October 2016 13:57 Go to previous messageGo to next message
Michael Vorburger is currently offline Michael VorburgerFriend
Messages: 103
Registered: July 2009
Senior Member
Hm... no.. Wink After having explored this more:

> I've figured, through some trial and error, that unless you put a Git Clone AND Stream into a Project, it won't show up in the Import Projects list

Clarification / refinement, it seemed like Git Clone is NOT needed, Stream IS required; without Stream it actually will show up in the Import Projects list, but can't be selected. So I'm currently using a "fake" stream in sub Projects which have only P2 Director (and without any git clone, there), but it feels like a bit of a hack...

BUT, much more importantly, this doesn't actually really work as desired after all... with this "trick", what I'm observing Oomph (standalone Eclipse Installer, not yet in full IDE) does is indeed initially skip the Repository and Requirement form the NOT select sub-project - as I would want it to. But when the full IDE starts, then the plugins from that Repository and Requirement get added anyway after all... Wink

> Would you consider make it possible to allow projects containing only P2 Director?

So the question here probably rather really is: Would you consider fully supporting optional partial P2 Director in Oomph setup models?
Re: Project with only P2 Director but no Git Clone nor Stream [message #1745793 is a reply to message #1745781] Mon, 17 October 2016 14:50 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
In the end, a Workspace has references to zero or more Streams. Only Streams can be added on the Project page. A Project without a Stream cannot be provisioned. It's the design intent and I'm not inclined to change that.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Project with only P2 Director but no Git Clone nor Stream [message #1747410 is a reply to message #1745793] Mon, 14 November 2016 11:34 Go to previous messageGo to next message
Michael Vorburger is currently offline Michael VorburgerFriend
Messages: 103
Registered: July 2009
Senior Member
Ed, based on what we briefly looked at together at EclipseCon re. this, I'm now finally attempting to implement this, using a "fake" e.g. <stream name="plugins"/> .. which unfortunately still only kind of works: It's OK for the initial project selection (as we observed together while trying this out at EclipseCon) - but there is a "glitch", which we missed because we didn't let it run through end-to-end:

When the full IDE starts, then it still seems to want to add the feature from my "optional plugins project" (with <stream name="plugins"/>) after all anyway; it's asking: "Eclipse Updated: Requirements Update: The installation does not satisfy the requirements list below. (something).feature [Install] [Skip]" - even though that project wasn't checked, and that feature and its p2 site doesn't show up anywhere in the initial install log... To me, that seems wrong - if the feature is part of a project that is not active/selected, it shouldn't think it does not satisfy a requirement?
Re: Project with only P2 Director but no Git Clone nor Stream [message #1747415 is a reply to message #1747410] Mon, 14 November 2016 12:29 Go to previous messageGo to next message
Michael Vorburger is currently offline Michael VorburgerFriend
Messages: 103
Registered: July 2009
Senior Member
Oh! Misunderstanding (misinterpretation of what happened) on me: That "glitch" was just because when the full IDE starts, then that instance obviously still uses the remote production setup model instead of the local model in development. P2task noticed the discrepancy of the P2 director configuration, and politely asks if it should rectify it (nice). With a manually added -Doomph.redirection.. to the eclipse.ini of the local test installation, this problem -obviously- does not occur anymore. So I think I'm all good here, and this will work great - optional plugins selection coming to https://github.com/vorburger/opendaylight-eclipse-setup shortly! Wink Ed thanks again for the tip re. the required "fake" stream.
Re: Project with only P2 Director but no Git Clone nor Stream [message #1747470 is a reply to message #1747415] Tue, 15 November 2016 08:32 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Michael,

Note that I'm currently working on better first class support for conditional tasks. Hopefully that will be in place in time for tomorrow's milestone build.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:I'm trying to install Java IDE Neon but always getting a log error
Next Topic:Stuck doing something/looping around (not deadlock) in SignatureBlockProcessor
Goto Forum:
  


Current Time: Mon Dec 09 04:04:39 GMT 2024

Powered by FUDForum. Page generated in 0.03552 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top