Springバッチジョブを設定する際に、スペースを持つCommandLineJobRunnerに引数を渡す必要があります。例えばSpringバッチに引数を渡すCommandLineJobRunner
:
java -cp "../../myproject.jar" org.springframework.batch.core.launch.support.CommandLineJobRunner jobconf.xml readJob -comp.name=My Company
上記のジョブを実行し、春のバッチは、 "マイ" としてのみcomp.name
値を取得しています。
spaces
を含むfull name("My Company")
を取得する方法はありますか?
どのような提案が大きな助けになるでしょう!
ありがとうございます。
'' -comp.name = My Company ''の形式で試しましたか? –