Oh yeah, we didn't see that class. It is probably a better approach. We are using the same class in order to simplify the way the batch is started (currently we can run our batch with:
Code:
java -jar my-batch.jar
and that is something we would like to keep. (there can only be defined one Main class in the manifest.mf file, right?)
so to start a one-time job we are doing
Code:
java -DfastRun=true -DjobName=someJob -jar -my-batch.jar
(We are forcing the op. to add two parameters just for possible extensibility in the future).