Eclipse 4.20中的minimal OSGi console shell命令行界面
旧版本的eclips直接运行org.eclipse.osgi_*.jar即可启动console. 但新版有变, 需要额外配置几个用到的jar方可.
step1. 创建目录和文件如下
- minimalConsole/
- configuration/
- config.ini
- org.apache.felix.gogo.command_1.1.2.v20210111-1007.jar
- org.apache.felix.gogo.runtime_1.1.4.v20210111-1007.jar
- org.apache.felix.gogo.shell_1.1.4.v20210111-1007.jar
- org.eclipse.core.runtime_3.22.0.v20210506-1025.jar
- org.eclipse.equinox.console_1.4.400.v20210602-1312.jar
- org.eclipse.osgi.services_3.10.100.v20210324-0936.jar
- org.eclipse.osgi.util_3.6.0.v20210212-1137.jar
- org.eclipse.osgi_3.16.300.v20210525-1715.jar
- configuration/
其中的jar文件可以从eclipse或equiniox SDK中直接拷贝.
而config.ini内容如下,
osgi.bundles=\
org.eclipse.osgi.services, \
org.eclipse.osgi.util, \
org.apache.felix.gogo.runtime,\
org.eclipse.equinox.console, \
org.apache.felix.gogo.shell,\
org.apache.f