command line - Passing argument with spaces to Spring batch CommandLineJobRunner -


in configuring spring batch jobs, have need pass argument commandlinejobrunner have spaces.

for example :

java -cp "../../myproject.jar" org.springframework.batch.core.launch.support.commandlinejobrunner jobconf.xml readjob -comp.name=my company 

when executing above job, spring batch getting comp.name value "my" only.

how full name("my company") including spaces?

any suggestions of great help!

thank you.

argument having spaces in splitted multiple arguments. use quotes specify single argument. may this can


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -