logic: improved Maven timeout policy (issue #449)

* only timeout if Maven did not generate output during the last 60 seconds
This commit is contained in:
mlangkabel
2017-08-29 14:15:11 +02:00
parent d8413b1cb4
commit 64efa00054
4 changed files with 81 additions and 16 deletions
+3 -2
View File
@@ -11,8 +11,9 @@ class License;
namespace utility
{
std::string executeProcess(const std::string& command, const std::string& workingDirectory = "", int timeout = 30000);
int executeProcessAndGetExitCode(const std::string& command, const std::string& workingDirectory = "", int timeout = 30000);
std::string executeProcess(const std::string& command, const std::string& workingDirectory = "", const int timeout = 30000);
std::string executeProcessUntilNoOutput(const std::string& command, const std::string& workingDirectory, int waitTime = 10000);
int executeProcessAndGetExitCode(const std::string& command, const std::string& workingDirectory = "", const int timeout = 30000);
void killRunningProcesses();