In configuring the spring batch jobs, I have a need to pass argument to CommandLineJobRunner which have spaces.
For example :
java -cp "../../myproject.jar" org.springframework.batch.core.launch.support.CommandLineJobRunner jobconf.xml readJob -comp.name=My Company
When executing the above Job, Spring Batch is getting the comp.name
value as "My" only.
How to get the full name("My Company")
including the spaces
?
Any suggestions will be of great help!
Thank you.