Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not require Eclipse to build #45

Open
FroMage opened this issue Oct 6, 2014 · 7 comments
Open

Do not require Eclipse to build #45

FroMage opened this issue Oct 6, 2014 · 7 comments
Labels
Milestone

Comments

@FroMage
Copy link
Member

FroMage commented Oct 6, 2014

There's got to be a way to generate the OSGi metadata without Eclipse.

@FroMage FroMage added the FEATURE label Oct 6, 2014
@FroMage FroMage added this to the 1.2 milestone Oct 6, 2014
@maxandersen
Copy link
Member

can you point to where you do it now ?

maven has tycho tasks to generate p2 metadata but not sure what it is exactly you need ?

@FroMage
Copy link
Member Author

FroMage commented Oct 6, 2014

Where we do it now is invoking Eclipse here: https://github.com/ceylon/ceylon-dist/blob/master/osgi/build.xml

@mickaelistria
Copy link

What do you call OSGi metadata? MANIFEST.MF or p2 metadata or other provisioning standard?

@maxandersen
Copy link
Member

I assume https://github.com/ceylon/ceylon-dist/blob/master/osgi/build.xml#L215 is what you want replaced ?

well, you either need to do it this way (using eclipse) or use maven/tycho (that bundles the parts of eclipse that generates p2 metadata) or ..reimplement tycho for ant? (can't ant call maven tasks somehow?)

@FroMage
Copy link
Member Author

FroMage commented Oct 6, 2014

What do you call OSGi metadata? MANIFEST.MF or p2 metadata

p2 repo.

@FroMage
Copy link
Member Author

FroMage commented Oct 6, 2014

@maxandersen yes that's the one. If we can use tycho from ant then that'd be an option.

@mickaelistria
Copy link

I don't believe using Tycho from Ant would be easier. In order to use Tycho, you have to deal with target-platforms and other stuff that makes that you have much stuff to maintain. Note that behind the hood, Tycho starts a minimal RCP application to invoke p2. You could use this zip: http://search.maven.org/remotecontent?filepath=org/eclipse/tycho/tycho-bundles-external/0.21.0/tycho-bundles-external-0.21.0.zip instead of a full Eclipse (and use the java task instead of exec).

I remember @prapicault explained me one that p2 uses OSGi services. but that by itself it wasn't much depending on Eclipse/OSGi framework and that the code could run in a plain Java process (or an Ant task). However, this would requiring some efforts in providing alternative assembly of the various classes and services p2 provides and uses.
So current status is that there is apparently nothing available to create p2 metadata without Eclipse, but that it wouldn't be difficult to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants