- QTextStream in(&srcXML);\r
-\r
- QString line = in.readLine();\r
- while (!line.isNull()) {\r
- if (line.contains("package", Qt::CaseInsensitive)) {\r
- QRegularExpression rxPack("^package (.+) is$",QRegularExpression::CaseInsensitiveOption);\r
- QRegularExpressionMatch matchPack = rxPack.match(line);\r
- if (matchPack.hasMatch()) {\r
- QString packName = matchPack.captured(1);\r
- cout << "found package " << qPrintable(packName) << endl;\r
- availableSources.append(new ExternalSource(packName,fileName,ExternalSource::Package));\r
- }\r
+ else {\r
+ cout << "parsing " << qPrintable(fileName) << " ... ";\r
+ QFile srcXML(fileName);\r
+ if (!srcXML.open(QIODevice::ReadOnly)) {\r
+ throw(Exception(IMPLFILE_NOACCESS));\r