-// Copyright (C) 2009-2011 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2009-2012 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
std::size_t pos = edt_value.find(":");
if (edt_value != "") {
+ if (pos == edt_value.npos) {
+ throw LauncherException("[Launcher::Job::checkMaximumDuration] Error on definition: " + edt_value);
+ }
std::string begin_edt_value = edt_value.substr(0, pos);
std::string mid_edt_value = edt_value.substr(pos, 1);
std::string end_edt_value = edt_value.substr(pos + 1, edt_value.npos);
if (file.substr(0, 1) == std::string("/"))
local_file = file;
else
+#ifndef WIN32
local_file = _local_directory + "/" + file;
+#else
+ local_file = file;
+#endif
// remote file -> get only file name from in_files
size_t found = file.find_last_of("/");