ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/s10k/Vago/xmlprocessor.cpp
(Generate patch)

Comparing:
Vago/trunk/Vago/xmlprocessor.cpp (file contents), Revision 1047 by s10k, Fri Sep 16 22:51:26 2016 UTC vs.
s10k/Vago/xmlprocessor.cpp (file contents), Revision 1093 by s10k, Sat Dec 30 13:57:32 2017 UTC

# Line 1 | Line 1
1   #include "xmlprocessor.h"
2  
3 < XmlProcessor::XmlProcessor(QString AppDir, Logger *myLogger, QStringList *commands)
3 > XmlProcessor::XmlProcessor(QString AppDir, QStringList *commands)
4   {
5      this->AppDir=AppDir;
6    this->myLogger=myLogger;
6      this->commands=commands;
7   }
8  
# Line 18 | Line 17 | void XmlProcessor::run()
17  
18      for(int i=0; i<this->commands->size(); i++){
19  
20 <        myProcess.start(UtilVago::getXmlToolsExeAbsolutePath() +" "+this->commands->at(i));
20 >        myProcess.start(UtilVago::getXmlToolsExecutable() +" "+this->commands->at(i));
21          myProcess.waitForFinished(-1);
22          result=myProcess.readAllStandardError();
23  
24          if(!result.isEmpty()){
25              //catch exception
26 <            myLogger->writeString("Xml Tools Error: \n"+this->commands->at(i)+"\n"+result);
26 >            LOG_ERROR << "Xml Tools Error: \n" + this->commands->at(i) + "\n"+result;
27              errorMessage=result;
28              numErrors++;
29          }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)