Skip to content
Permalink
Browse files
BATCHEE-120 add a way to configure the splash screen message
You can now use the property "org.apache.batchee.init.splashscreen" to tweak it.
  • Loading branch information
struberg committed Jun 22, 2017
1 parent bede496 commit 17455d3e9ebeb06d909098540894d44c17e1236c
Showing 1 changed file with 7 additions and 2 deletions.
@@ -32,10 +32,15 @@ public final class Init {

public static void doInit() {
if (Boolean.parseBoolean(ServicesManager.value("org.apache.batchee.init.verbose", "true"))) {
String splashScreen = ServicesManager.value("org.apache.batchee.init.splashscreen", null);
if (splashScreen == null) {
splashScreen = LOGO;
}

if (!Boolean.parseBoolean(ServicesManager.value("org.apache.batchee.init.verbose.sysout", "false"))) {
LOGGER.info(LOGO);
LOGGER.info(splashScreen);
} else {
System.out.println(LOGO);
System.out.println(splashScreen);
}
}
}

0 comments on commit 17455d3

Please sign in to comment.