}
// ----------------------------------------------------------------
// create a default JobSpec
// ----------------------------------------------------------------
JobSpec spec = JobBuilder.buildJobSpec(jobFile.getAbsolutePath());
Job job = spec.getJob();
NameValueJobInput jobInput = (NameValueJobInput) spec.getIn();
// ----------------------------------------------------------------
// open the file to read. traverse through the list of directories
// name given & override the default Job's runDirName value with the
// directory name. then submit the Job.