Launcher::Job_SALOME::~Job_SALOME() {}
-void
+void
Launcher::Job_SALOME::setResourceDefinition(const ParserResourcesType & resource_definition)
{
// Check resource_definition
}
#ifdef WITH_LIBBATCH
-std::string
+std::string
Launcher::Job_SALOME::buildSalomeScript(Batch::Parametre params)
{
// parameters
std::string launch_script = Kernel_Utils::GetTmpDir() + "runSalome_" + _job_file_name + "_" + _launch_date + ".sh";
std::ofstream launch_script_stream;
- launch_script_stream.open(launch_script.c_str(),
+ launch_script_stream.open(launch_script.c_str(),
std::ofstream::out
-#ifdef WIN32
+#ifdef WIN32
| std::ofstream::binary //rnv: to avoid CL+RF end of line on windows
#endif
);
-
+
// Begin of script
launch_script_stream << "#!/bin/sh -f" << std::endl;
launch_script_stream << "cd " << work_directory << std::endl;
return launch_script;
}
#endif
-
#include <sstream>
-Launcher::Job_YACSFile::Job_YACSFile()
+Launcher::Job_YACSFile::Job_YACSFile()
{
_job_type = "yacs_file";
_dumpState = -1;
Launcher::Job_YACSFile::~Job_YACSFile() {}
-void
+void
Launcher::Job_YACSFile::setJobFile(const std::string & job_file)
{
Launcher::Job::setJobFile(job_file);