summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestUpdateHandler.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-27 15:15:01 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-27 15:15:01 (GMT)
commit62b310bc52b9feefab32992f7bcebaecbf3aa857 (patch)
treef1070331289cf33a4e15edcf4f616005f6b3ff8b /Source/CTest/cmCTestUpdateHandler.cxx
parent14477cee6e8a380e74f4cbf70afe5f3c3bfbd8a2 (diff)
downloadCMake-62b310bc52b9feefab32992f7bcebaecbf3aa857.zip
CMake-62b310bc52b9feefab32992f7bcebaecbf3aa857.tar.gz
CMake-62b310bc52b9feefab32992f7bcebaecbf3aa857.tar.bz2
ENH: Add compression support to XML files
Diffstat (limited to 'Source/CTest/cmCTestUpdateHandler.cxx')
-rw-r--r--Source/CTest/cmCTestUpdateHandler.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestUpdateHandler.cxx b/Source/CTest/cmCTestUpdateHandler.cxx
index c3eff5d..cbdb3ad 100644
--- a/Source/CTest/cmCTestUpdateHandler.cxx
+++ b/Source/CTest/cmCTestUpdateHandler.cxx
@@ -23,6 +23,7 @@
#include "cmLocalGenerator.h"
#include "cmGlobalGenerator.h"
#include "cmVersion.h"
+#include "cmGeneratedFileStream.h"
//#include <cmsys/RegularExpression.hxx>
#include <cmsys/Process.h>
@@ -95,8 +96,8 @@ int cmCTestUpdateHandler::UpdateDirectory(cmCTest *ctest_inst)
std::string command = cvsCommand + " -z3 update " + cvsOptions +
" " + extra_update_opts;
- std::ofstream os;
- if ( !m_CTest->OpenOutputFile(m_CTest->GetCurrentTag(), "Update.xml", os) )
+ cmGeneratedFileStream os;
+ if ( !m_CTest->OpenOutputFile(m_CTest->GetCurrentTag(), "Update.xml", os, true) )
{
std::cerr << "Cannot open log file" << std::endl;
}
@@ -106,7 +107,7 @@ int cmCTestUpdateHandler::UpdateDirectory(cmCTest *ctest_inst)
std::string goutput;
int retVal = 0;
bool res = true;
- std::ofstream ofs;
+ cmGeneratedFileStream ofs;
if ( !m_CTest->GetShowOnly() )
{
res = cmSystemTools::RunSingleCommand(command.c_str(), &goutput,