OPEN - issue BATCH-304: BatchCommandLineLauncher simplified and rename
http://jira.springframework.org/browse/BATCH-304 Wrong name for job launcher class in config
This commit is contained in:
@@ -217,8 +217,7 @@ public class SimpleCommandLineJobRunner {
|
||||
AutowireCapableBeanFactory.AUTOWIRE_BY_TYPE, false);
|
||||
|
||||
Assert.state(launcher != null, "JobLauncher must be provided in the parent ApplicationContext"
|
||||
+ ", check the context created within classpath*:beanRefContext.xml to ensure a JobLauncher"
|
||||
+ " is declared");
|
||||
+ ", check the context to ensure a JobLauncher is declared");
|
||||
|
||||
if (jobName == null) {
|
||||
String[] names = context.getBeanNamesForType(Job.class);
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<bean class="org.springframework.batch.execution.bootstrap.support.SimpleJvmExitCodeMapper" />
|
||||
|
||||
<bean
|
||||
class="org.springframework.batch.execution.bootstrap.support.BatchCommandLineLauncherTests$StubSystemExiter" />
|
||||
class="org.springframework.batch.execution.bootstrap.support.SimpleCommandLineJobRunnerTests$StubSystemExiter" />
|
||||
|
||||
<bean id="test-job" class="org.springframework.batch.core.domain.Job">
|
||||
<property name="steps">
|
||||
|
||||
Reference in New Issue
Block a user