| 1 |  | #include "xmlprocessor.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 2 |  |  | 
 
 
 
 
 
 
 
 
 
 
 | 3 | < | XmlProcessor::XmlProcessor(Logger *myLogger, QStringList *commands) | 
 
 
 
 
 
 
 
 
 | 3 | > | XmlProcessor::XmlProcessor(QString AppDir, Logger *myLogger, QStringList *commands) | 
 
 
 
 
 
 
 
 
 
 
 | 4 |  | { | 
 
 
 
 
 
 
 
 | 5 | + | this->AppDir=AppDir; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 6 |  | this->myLogger=myLogger; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 7 |  | this->commands=commands; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 8 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 14 |  | QString errorMessage = ""; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 15 |  | int numErrors=0; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 16 |  |  | 
 
 
 
 
 
 
 
 | 17 | + | myProcess->setWorkingDirectory(this->AppDir); | 
 
 
 
 
 
 
 
 | 18 | + |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 19 |  | for(int i=0; i<this->commands->size(); i++){ | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 20 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 21 |  | myProcess->start(GlobalVars::XmlToolsExeName+" "+this->commands->at(i)); |