[BND 3.4.0-DEV] new tasks "resolve/runbundles" broken?

36 views
Skip to first unread message

Marc Schlegel

unread,
Mar 17, 2017, 11:47:20 AM3/17/17
to bndtools-users
Hello everyone

Out of curiosity I configured my Akka-Osgi demo [1] to use the latest development snapshot of Bnd gradle-plugin to test the new tasks "resolve" and "runbundles"

I expected that an existing -runbundles section will be replaced with the resolution result from -runrequire. Unfortunately the only result I get is that the whole -runbundles section is removed.
The gradle tasks finishes without exceptions.

Background: for this project I have to use Intellij and the command line because there is currently no Eclipse support for Scala 2.12 (Scala IDE not ready yet). Since Intellij support for Bnd is very raw (no resolution or dependency/repo management) I need to resolve the -runbundles from gradle...or get crazy by maintaining this manually.

For example, I use this manually created launch.bndrun file
-runsystemcapabilities: ${native_capability}
-runsystempackages: sun.misc
-runfw: org.apache.felix.framework;version='[5.6.2,5.7.0)'
-runproperties: felix.log.level=3
-runee: JavaSE-1.8

-runvm: -Dfelix.fileinstall.dir=../configuration/config-admin\n\
-Dfelix.fileinstall.noInitialDelay=true\n\
-Dfelix.fileinstall.poll=1000

-runrequire:\
    osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.shell)',\
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.command)',\
osgi.identity;filter:='(osgi.identity=org.apache.felix.fileinstall)',\
bundle:(symbolicname=com.typesafe.akka.actor),\
bundle:(symbolicname=com.typesafe.akka.osgi),\
bundle:(symbolicname=org.scala-lang.scala-library),\
bundle:(symbolicname=com.typesafe.config),\
bundle:(symbolicname=org.scala-lang.modules.scala-java8-compat),\
bundle:(&(symbolicname=org.apache.felix.scr)(version>=2.0.8))

-runbundles: \
    org.apache.felix.configadmin;version='[1.8.14,2.0.0)',\
    org.apache.felix.fileinstall;version='[3.5.8,3.6.0)',\
    org.apache.felix.gogo.command;version='[1.0.2,2.0.0)',\
    org.apache.felix.gogo.runtime;version='[1.0.2,2.0.0)',\
    org.apache.felix.gogo.shell;version='[1.0.0,2.0.0)',\
org.scala-lang.scala-library;version='[2.12.0,2.13.0)',\
org.scala-lang.modules.scala-java8-compat;version='[0.8.0,1.0.0)',\
com.typesafe.config;version='[1.3.0,2)',\
com.typesafe.akka.actor;version='[2.4,3)',\
com.typesafe.akka.osgi;version='[2.4,3)',\
org.apache.felix.scr;version='[2.0.8,3)',\
osgi.akka.actorsystem.demo;version=snapshot

After running gradle resolve.launch or gradle runbundles.launch I end up with this

-runsystemcapabilities: ${native_capability}
-runsystempackages: sun.misc
-runfw: org.apache.felix.framework;version='[5.6.2,5.7.0)'
-runproperties: felix.log.level=3
-runee: JavaSE-1.8

-runvm: -Dfelix.fileinstall.dir=../configuration/config-admin\n\
-Dfelix.fileinstall.noInitialDelay=true\n\
-Dfelix.fileinstall.poll=1000

-runrequire:\
    osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.shell)',\
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.command)',\
osgi.identity;filter:='(osgi.identity=org.apache.felix.fileinstall)',\
bundle:(symbolicname=com.typesafe.akka.actor),\
bundle:(symbolicname=com.typesafe.akka.osgi),\
bundle:(symbolicname=org.scala-lang.scala-library),\
bundle:(symbolicname=com.typesafe.config),\
bundle:(symbolicname=org.scala-lang.modules.scala-java8-compat),\
bundle:(&(symbolicname=org.apache.felix.scr)(version>=2.0.8))


Am I missing something?

regards
Marc


BJ Hargrave

unread,
Mar 18, 2017, 5:32:54 PM3/18/17
to bndtool...@googlegroups.com
Yes. It is -runrequires (s at the end). Not -runrequire.

--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
BJ

Marc Schlegel

unread,
Mar 19, 2017, 7:38:13 AM3/19/17
to bndtools-users
Doh! Thanks BJ

This happens when using an IDE with almost not existing Bnd-support.
Reply all
Reply to author
Forward
0 new messages