def _make_arglist(self, job): arglist = [job.exe()] if job.opts(): arglist += job.opts() (tmp_files, job_args) = DefaultShellJobRunner._fix_paths(job) (tmpdir, outdir) = tmp_files[0] arglist += ['-o', tmpdir.path] arglist += [job_args[0]] return (arglist, tmp_files)
def _make_arglist(self, job): if not job.jar() or not os.path.exists(os.path.join(job.path(),job.jar())): logger.error("Can't find jar: {0}, full path {1}".format(job.jar(), os.path.abspath(job.jar()))) raise Exception("job jar does not exist") arglist = [job.java()] + job.java_opt() + ['-jar', os.path.join(job.path(), job.jar())] if job.main(): arglist.append(job.main()) if job.opts(): arglist += job.opts() (tmp_files, job_args) = DefaultShellJobRunner._fix_paths(job) arglist += job_args return (arglist, tmp_files)
def job_runner(self): return DefaultShellJobRunner()