X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FCore%2FBatch_CommunicationProtocol.cxx;h=8a3ef6ada2b5c7591028c54e8208c5305b1ba94a;hb=f9cfa27307e650551fd1f69d616cdec5f9ff2efd;hp=032603f206f624e8a7e8ee545fe4fb5084dec684;hpb=09ca91bc366afe980bd8f88ef5d45ec150ed43bf;p=tools%2Flibbatch.git diff --git a/src/Core/Batch_CommunicationProtocol.cxx b/src/Core/Batch_CommunicationProtocol.cxx index 032603f..8a3ef6a 100644 --- a/src/Core/Batch_CommunicationProtocol.cxx +++ b/src/Core/Batch_CommunicationProtocol.cxx @@ -33,9 +33,15 @@ #include #include "Batch_CommunicationProtocol.hxx" -#include "Batch_CommunicationProtocolRSH.hxx" -#include "Batch_CommunicationProtocolSH.hxx" -#include "Batch_CommunicationProtocolSSH.hxx" +#ifdef HAS_RSH + #include "Batch_CommunicationProtocolRSH.hxx" +#endif +#ifdef HAS_SH + #include "Batch_CommunicationProtocolSH.hxx" +#endif +#ifdef HAS_SSH + #include "Batch_CommunicationProtocolSSH.hxx" +#endif #include "Batch_APIInternalFailureException.hxx" #include "Batch_RunTimeException.hxx" @@ -145,11 +151,7 @@ namespace Batch { // if the argument contains spaces, we surround it with simple quotes (Linux) // or double quotes (Windows) if (commandArgs[i].find(' ') != string::npos) { -#ifdef WIN32 commandStr += string("\"") + commandArgs[i] + "\""; -#else - commandStr += string("\'") + commandArgs[i] + "\'"; -#endif } else { commandStr += commandArgs[i]; }