akhikhl / wuff

Gradle plugin for automating assembly of OSGi/Eclipse bundles and applications
MIT License
152 stars 51 forks source link

Configuration of autostarted bundles #33

Closed mcmil closed 10 years ago

mcmil commented 10 years ago

Currently only preconfigured bundles are marked with start flag in the config.ini. I neede to mark some custom plugins (webconsole and jetty) as autostarted too. I extended the gradle script configuration with an autostartedBundles property:

    products {
        autostartedBundles << 'org.eclipse.equinox.http.jetty'
        autostartedBundles << 'org.apache.felix.webconsole'
    }
    run {
        autostartedBundles.addAll(products.autostartedBundles)
    }

Maybe the definition of the default ones (org.eclipse.core.runtime, jersey-core) could be extracted to RunExtension and EquinoxAppProductsExtension, but quite frankly I'm not sure if its the right place.

akhikhl commented 10 years ago

Very nice feature, thank you :+1: Would you mind renaming autostartedBundles to autostartBundles?

mcmil commented 10 years ago

No problem, I'll try to change it soon.