qortal/osgi-console.sh
catbref 5c6e239d76 initial work towards OSGi
refactored packages so they all start with org.qora

added some attempt at OSGi mega bundle using Maven (doesn't work)
2019-01-04 10:19:33 +00:00

20 lines
485 B
Bash
Executable File

#!/usr/bin/env bash
BUNDLES="org.apache.felix.gogo.runtime org.apache.felix.gogo.shell org.apache.felix.gogo.command org.eclipse.equinox.console"
JAR=org.eclipse.osgi
PLUGIN_DIR=/usr/local/lib/eclipse/plugins
for bundle in ${BUNDLES}; do
bundle_path=`echo ${PLUGIN_DIR}/${bundle}_*.jar`
if [ -z "${bundles_arg}" ]; then
bundles_arg=-Dosgi.bundles=
else
bundles_arg+=,
fi
bundles_arg+=${bundle_path}@start
done
java ${bundles_arg} -jar ${PLUGIN_DIR}/${JAR}_*.jar -console