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:
parent
37fef0749c
commit
224b14318b
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ public class HeadlessBuilderWrapper implements IApplication {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void showUsage(IApplicationContext context) {
|
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));
|
System.out.println(NLS.bind(Messages.CommandLineUsage, binaryName));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue