You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@batchee.apache.org by st...@apache.org on 2017/06/22 09:07:26 UTC
incubator-batchee git commit: BATCHEE-120 add a way to configure the
splash screen message
Repository: incubator-batchee
Updated Branches:
refs/heads/master bede496c0 -> 17455d3e9
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.
Project: http://git-wip-us.apache.org/repos/asf/incubator-batchee/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-batchee/commit/17455d3e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-batchee/tree/17455d3e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-batchee/diff/17455d3e
Branch: refs/heads/master
Commit: 17455d3e9ebeb06d909098540894d44c17e1236c
Parents: bede496
Author: Mark Struberg <st...@apache.org>
Authored: Thu Jun 22 11:06:32 2017 +0200
Committer: Mark Struberg <st...@apache.org>
Committed: Thu Jun 22 11:06:32 2017 +0200
----------------------------------------------------------------------
.../java-templates/org/apache/batchee/container/Init.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-batchee/blob/17455d3e/jbatch/src/main/java-templates/org/apache/batchee/container/Init.java
----------------------------------------------------------------------
diff --git a/jbatch/src/main/java-templates/org/apache/batchee/container/Init.java b/jbatch/src/main/java-templates/org/apache/batchee/container/Init.java
index eb79068..c8173e3 100644
--- a/jbatch/src/main/java-templates/org/apache/batchee/container/Init.java
+++ b/jbatch/src/main/java-templates/org/apache/batchee/container/Init.java
@@ -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);
}
}
}