Skip to content

Switch JobLauncherCommandLineRunner to ApplicationRunner #19442

@snicoll

Description

@snicoll

JobLauncherCommandLineRunner is currently a CommandLineRunner. As such it receives the raw command line arguments, including any command line option arguments.

These are only meant to set value in the Environment and should not be either visible or used by Spring Batch itself. We've implemented a different callback to easily allow to split options and non options argument. Using this would make sure -- based arguments are ignored.

We're currently describing the situation of mixing options and non options arguments as having a side effect so implementing this would have the benefit of handling this scenario properly out-of-the box.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions