[Cmake-commits] [cmake-commits] king committed cmCPackGenerator.cxx 1.16 1.17
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Feb 5 16:31:39 EST 2009
Update of /cvsroot/CMake/CMake/Source/CPack
In directory public:/mounts/ram/cvs-serv3208/Source/CPack
Modified Files:
cmCPackGenerator.cxx
Log Message:
ENH: Create cmXMLSafe to help escapes in XML
This class provides easy syntax to efficiently insert blocks of data
into XML documents with proper escapes. It replaces the old
cmCTest::MakeXMLSafe and cmSystemTools::MakeXMLSafe methods which
allocated extra memory instead of directly streaming the data.
Index: cmCPackGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CPack/cmCPackGenerator.cxx,v
retrieving revision 1.16
retrieving revision 1.17
diff -C 2 -d -r1.16 -r1.17
*** cmCPackGenerator.cxx 15 Oct 2008 13:35:27 -0000 1.16
--- cmCPackGenerator.cxx 5 Feb 2009 21:31:37 -0000 1.17
***************
*** 25,28 ****
--- 25,29 ----
#include "cmGeneratedFileStream.h"
#include "cmCPackComponentGroup.h"
+ #include "cmXMLSafe.h"
#include <cmsys/SystemTools.hxx>
***************
*** 144,148 ****
while ( ifs && cmSystemTools::GetLineFromStream(ifs, line) )
{
! ostr << cmSystemTools::MakeXMLSafe(line.c_str()) << std::endl;
}
this->SetOptionIfNotSet("CPACK_PACKAGE_DESCRIPTION", ostr.str().c_str());
--- 145,149 ----
while ( ifs && cmSystemTools::GetLineFromStream(ifs, line) )
{
! ostr << cmXMLSafe(line) << std::endl;
}
this->SetOptionIfNotSet("CPACK_PACKAGE_DESCRIPTION", ostr.str().c_str());
More information about the Cmake-commits
mailing list