Closed paulvi closed 8 years ago
The problem is likely different, as for 1.4.3, 1.4.2, 1.4.0 felix is used always (even when 'org.eclipse.osgi:org.eclipse.osgi:3.7.1' is downloaded )
runOsgi {
configSettings = 'equinox'
osgiMain = 'org.eclipse.osgi:org.eclipse.osgi:3.7.1'
// https://bintray.com/search?query=org.eclipse.osgi
//osgiMain = 'org.eclipse.tycho:org.eclipse.osgi:3.10.101.v20'
javaArgs = '-DmyProp=someValue'
programArgs = '-console'
config += [ 'osgi.clean': true ] // add properties to the Equinox config
Hi..
The syntax is gradlew runOsgi -Pequinox
.
See this project: https://github.com/renatoathaydes/osgi-run/tree/master/osgi-run-test/ipojo-dosgi
It uses -Pclient
to launch a client (and launches the server in case client is not set). See the build file: https://github.com/renatoathaydes/osgi-run/blob/master/osgi-run-test/ipojo-dosgi/build.gradle#L26
This is not a bug, it's just a side-effect of my latest changes to this demo project (build-with-subprojects
), whereas I applied osgi-run
to all sub-projects. When you run gradle runOsgi
from the top-level directory, it will run each project, in turn, starting from the top-level one, then each subproject... As you only made the top-level project run with Equinox, the others run with the default, Felix, as expected.
@paulvi See the README I created explaining how to do this correctly.
While trying https://github.com/renatoathaydes/osgi-run/issues/37#issuecomment-208057926
all
did not work
It always launches Felix