wuff icon indicating copy to clipboard operation
wuff copied to clipboard

Support osgi-extensions to enable e(fx)clipse based e4 RCP applications

Open tschulte opened this issue 11 years ago • 1 comments

Currently I am trying to get a JavaFX-based RCP application to run. See https://github.com/tschulte/contacts-griffon.

This project is a copy of the contacts demo of e(fx)clipse and I just added the gradle build file. As you can see, I needed to do a lot of stuff to at least get it running, though it still does not run completely.

OSGI-Extensions are not supported out of the box:

products {
    launchParameter '-vmargs'
    launchParameter '-Dosgi.framework.extensions=org.eclipse.fx.osgi'
}
run {
    args.addAll(products.launchParameters)
}
configurations {
    osgiExtension
}
dependencies {
    osgiExtension "$eclipseMavenGroup:org.eclipse.fx.osgi:+"
}
afterEvaluate {
    tasks.prepareRunConfig << {
        File configIni = file("$buildDir/run/configuration/config.ini")
        configIni.append "osgi.framework.extensions=reference\\:${configurations.osgiExtension.files[0].toURI()}"
    }
}
configurations {
    compileOnly
    all {
        // exclude a lot of dependencies automatically applied by wuff (swt et. al.)
    }
}

As you can see, the bundle org.eclipse.fx.osgi must not be added to the osgi.bundles list in the config.ini, but instead to a new entry osgi.framework.extensions.

tschulte avatar Sep 08 '14 18:09 tschulte

Might wanna take a look at Goomph and its example project. Currently on 3.0.0-SNAPSHOT, actively seeking feedback before 3.0.0 release.

nedtwigg avatar Jun 29 '16 22:06 nedtwigg