1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 20:45:22 +02:00

Use the launch name in the help text

The "eclipse.launcher" property is available when using the eclipse
launcher. If the headless builder app is launched without the eclipse
launcher, fall back to generic "PROGRAM".

The property is not available when running eclipse in runtime mode!

Contributed by STMicroelectronics

Change-Id: If2c99a234fd841451af05e3635d44fe2967c9537
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
This commit is contained in:
Torbjörn Svensson 2021-05-28 19:20:15 +02:00
parent 37fef0749c
commit 224b14318b

View file

@ -137,7 +137,7 @@ public class HeadlessBuilderWrapper implements IApplication {
}
private void showUsage(IApplicationContext context) {
String binaryName = "PROGRAM"; //$NON-NLS-1$ // TODO: Lookup the name of the eclipse binary, might be branded!
String binaryName = System.getProperty("eclipse.launcher", "PROGRAM"); //$NON-NLS-1$ //$NON-NLS-2$
System.out.println(NLS.bind(Messages.CommandLineUsage, binaryName));
}