diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-03-04 22:11:42 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-03-04 22:11:42 (GMT) |
commit | bee77d02982db5a6f4493cd11264a0b71b7434be (patch) | |
tree | 02b5241641ceb446eaad8a67e7c2350e80908e6f /Source/cmCTest.cxx | |
parent | cecda2a3bf1170f98542a78d15fb42e05f6637ce (diff) | |
download | CMake-bee77d02982db5a6f4493cd11264a0b71b7434be.zip CMake-bee77d02982db5a6f4493cd11264a0b71b7434be.tar.gz CMake-bee77d02982db5a6f4493cd11264a0b71b7434be.tar.bz2 |
ENH: Start working on xmlrpc code. This code does not work, but it will at least test compiling with cmxmlrpc
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 3a65f77..fa6c4ef 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -678,6 +678,22 @@ int cmCTest::SubmitResults() ofs << " Submission succesfull" << std::endl; return 1; } + else if ( m_DartConfiguration["DropMethod"] == "xmlrpc" ) + { + ofs << "Using drop method: XML-RPC" << std::endl; + std::cout << " Using XML-RPC submit method" << std::endl; + std::string url = m_DartConfiguration["DropSite"]; + prefix = m_DartConfiguration["DropLocation"]; + if ( !submit.SubmitUsingXMLRPC(m_BinaryDir+"/Testing/"+m_CurrentTag, files, prefix, url) ) + { + std::cerr << " Problems when submitting via XML-RPC" << std::endl; + ofs << " Problems when submitting via XML-RPC" << std::endl; + return 0; + } + std::cout << " Submission successfull" << std::endl; + ofs << " Submission succesfull" << std::endl; + return 1; + } else { std::string url; |