Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Do not require Eclipse to build #5718

Closed
CeylonMigrationBot opened this issue Oct 6, 2014 · 9 comments
Closed

Do not require Eclipse to build #5718

CeylonMigrationBot opened this issue Oct 6, 2014 · 9 comments

Comments

@CeylonMigrationBot
Copy link

[@FroMage] There's got to be a way to generate the OSGi metadata without Eclipse.

[Migrated from ceylon/ceylon-dist#45]

@CeylonMigrationBot
Copy link
Author

[@maxandersen] 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 ?

@CeylonMigrationBot
Copy link
Author

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

@CeylonMigrationBot
Copy link
Author

[@mickaelistria] What do you call OSGi metadata? MANIFEST.MF or p2 metadata or other provisioning standard?

@CeylonMigrationBot
Copy link
Author

[@maxandersen] 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?)

@CeylonMigrationBot
Copy link
Author

[@FroMage]

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

p2 repo.

@CeylonMigrationBot
Copy link
Author

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

@CeylonMigrationBot
Copy link
Author

[@mickaelistria] 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.

@gavinking
Copy link
Contributor

@davidfestal @FroMage is this still an issue, or has it been fixed?

@FroMage
Copy link
Contributor

FroMage commented Aug 18, 2017

Yes

@FroMage FroMage closed this as completed Aug 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants