Skip to content
Permalink
Browse files
BATCHEE-121 add a way to define a lifecycle via system properties
  • Loading branch information
struberg committed Jun 23, 2017
1 parent 17455d3 commit a07bf2c7c515da3eb783d3628dc7836160ceb467
Showing 1 changed file with 5 additions and 0 deletions.
@@ -174,6 +174,11 @@ public final void run() {
try {
final Lifecycle<Object> lifecycleInstance;
final Object state;

if (lifecycle == null) {
lifecycle = System.getProperty("org.apache.batchee.cli.lifecycle");
}

if (lifecycle != null) {
lifecycleInstance = createLifecycle(loader);
state = lifecycleInstance.start();

0 comments on commit a07bf2c

Please sign in to comment.