diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-02-12 21:01:27 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-02-12 21:01:27 (GMT) |
commit | 79e13af195e8664a18449b09d3bc2f0e04c80992 (patch) | |
tree | 5f3d6d00e14b0eca86f0fbdfa5252d913b0e77bd /Source/cmExtraEclipseCDT4Generator.cxx | |
parent | 8074bca93ca3774d3ce8ca9195f1f08d36d6e7bb (diff) | |
download | CMake-79e13af195e8664a18449b09d3bc2f0e04c80992.zip CMake-79e13af195e8664a18449b09d3bc2f0e04c80992.tar.gz CMake-79e13af195e8664a18449b09d3bc2f0e04c80992.tar.bz2 |
Add XML escaping for directory name in Eclipse projects (#11658)
Alex
Diffstat (limited to 'Source/cmExtraEclipseCDT4Generator.cxx')
-rw-r--r-- | Source/cmExtraEclipseCDT4Generator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx index cd22291..eb78647 100644 --- a/Source/cmExtraEclipseCDT4Generator.cxx +++ b/Source/cmExtraEclipseCDT4Generator.cxx @@ -431,7 +431,8 @@ void cmExtraEclipseCDT4Generator::AppendIncludeDirectories( { emittedDirs.insert(dir); fout << "<pathentry include=\"" - << cmExtraEclipseCDT4Generator::GetEclipsePath(dir) + << cmExtraEclipseCDT4Generator::EscapeForXML( + cmExtraEclipseCDT4Generator::GetEclipsePath(dir)) << "\" kind=\"inc\" path=\"\" system=\"true\"/>\n"; } } @@ -1002,9 +1003,10 @@ void cmExtraEclipseCDT4Generator::AppendTarget(cmGeneratedFileStream& fout, const char* prefix) { std::string targetXml = cmExtraEclipseCDT4Generator::EscapeForXML(target); + std::string pathXml = cmExtraEclipseCDT4Generator::EscapeForXML(path); fout << "<target name=\"" << prefix << targetXml << "\"" - " path=\"" << path.c_str() << "\"" + " path=\"" << pathXml.c_str() << "\"" " targetID=\"org.eclipse.cdt.make.MakeTargetBuilder\">\n" "<buildCommand>" << cmExtraEclipseCDT4Generator::GetEclipsePath(make) |