开发者

Running Equinox stand-alone with --launcher.ini option

开发者 https://www.devze.com 2023-03-12 11:35 出处:网络
I\'m trying to run Equinox and antRunner in \"headless\" mode with a custom eclipse.ini file. The \"--launcher.ini\" option should work according to:

I'm trying to run Equinox and antRunner in "headless" mode with a custom eclipse.ini file. The "--launcher.ini" option should work according to: htt开发者_如何学编程p://wiki.eclipse.org/Equinox_Launcher .

However, when I run the following command line:

java.exe 
  -cp "C:\Program Files\eclipse\plugins\org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar" \
  org.eclipse.core.launcher.Main \
  --launcher.ini "C:\ini\my_eclipse.ini" \
  -application org.eclipse.ant.core.antRunner \
  -console \
  -data "c:\my_workspace" \
  -file "c:\my_buildfiles\build.xml" \

I get the following error message:

osgi> Unknown argument: --launcher.ini 
Unknown target: C:\ini\my_eclipse.ini
Buildfile: .\build.xml

How can I load a custom eclipse.ini when starting Eclipse with Equinox from the command line?


The problem is that you are trying to launch using only the Java part of the launcher, while the wiki page describes the arguments for the native part of the launcher (eclipse.exe or any name you want).

The launcher.ini describes how to setup the Java process (memory size, vm location, arguments to vm, etc.). So, it makes sense that you pass refernece to the launcher.ini to the native launcher.

0

精彩评论

暂无评论...
验证码 换一张
取 消