X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FLauncher%2FLauncher_Job.cxx;h=e3a2fc615c40a67d6370c03adbd64ae4b7bd9eee;hb=ba491a628e00e7030e2f453c22c41711f2c77530;hp=e046fd8cfc14d88b8f5ed7a3fed573a1873bdb47;hpb=274df8f7263b7b0bf2bc39e49fdad50e4a5e3faa;p=modules%2Fkernel.git diff --git a/src/Launcher/Launcher_Job.cxx b/src/Launcher/Launcher_Job.cxx index e046fd8cf..e3a2fc615 100644 --- a/src/Launcher/Launcher_Job.cxx +++ b/src/Launcher/Launcher_Job.cxx @@ -40,6 +40,7 @@ Launcher::Job::Job() _job_file = ""; _job_file_name = ""; _job_file_name_complete = ""; + _pre_command = ""; _work_directory = ""; _local_directory = ""; _result_directory = ""; @@ -442,6 +443,18 @@ Launcher::Job::getReference() const return _reference; } +void +Launcher::Job::setPreCommand(const std::string & preCommand) +{ + _pre_command = preCommand; +} + +std::string +Launcher::Job::getPreCommand() const +{ + return _pre_command; +} + void Launcher::Job::checkMaximumDuration(const std::string & maximum_duration) { @@ -604,6 +617,7 @@ Launcher::Job::common_job_params() } } params[Batch::WORKDIR] = _work_directory; + params[Batch::PREPROCESS] = _pre_command; // Parameters for COORM params[Batch::LAUNCHER_FILE] = _launcher_file;