Skip to content

Commit

Permalink
[sre] Default name of the SRE is janus.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Apr 27, 2017
1 parent 1df1cb0 commit 2e014d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Expand Up @@ -594,7 +594,7 @@ private static void showHelp(PrintWriter logger) {
public static String getProgramName() {
String programName = JanusConfig.getSystemProperty(JanusConfig.JANUS_PROGRAM_NAME, null);
if (Strings.isNullOrEmpty(programName)) {
programName = Boot.class.getName();
programName = JanusConfig.JANUS_PROGRAM_NAME_VALUE;
}
return programName;
}
Expand Down
Expand Up @@ -248,10 +248,19 @@ public final class JanusConfig {

/**
* Name of the property that contains the name of the Janus main program from the external point of view.
*
* @see #JANUS_PROGRAM_NAME_VALUE
*/
public static final String JANUS_PROGRAM_NAME = "janus.programName"; //$NON-NLS-1$

private JanusConfig() {
/** Default value of the property that contains the name of the Janus
* main program from the external point of view.
*
* @see #JANUS_PROGRAM_NAME
*/
public static final String JANUS_PROGRAM_NAME_VALUE = "janus"; //$NON-NLS-1$

private JanusConfig() {
//
}

Expand All @@ -278,7 +287,7 @@ public static void getDefaultValues(Properties defaultValues) {
defaultValues.put(KERNEL_THREAD_PURGE_DELAY_NAME, Integer.toString(KERNEL_THREAD_PURGE_DELAY_VALUE));
defaultValues.put(INJECTION_MODULE_NAME, INJECTION_MODULE_NAME_VALUE);
defaultValues.put(JANUS_LOGO_SHOW_NAME, JANUS_LOGO_SHOW.toString());
defaultValues.put(JANUS_PROGRAM_NAME, ""); //$NON-NLS-1$
defaultValues.put(JANUS_PROGRAM_NAME, JANUS_PROGRAM_NAME_VALUE);
}

/**
Expand Down

0 comments on commit 2e014d9

Please sign in to comment.