aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlplugindump
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2018-08-31 12:29:14 +0200
committerKai Koehne <kai.koehne@qt.io>2018-09-06 12:20:42 +0000
commit638f80c317a42d51ff312c077cc84f60538e5498 (patch)
treeb662d2b74759774b519949c8fca0a347a1bd3586 /tools/qmlplugindump
parent083964289448afdbe27f72052077f10c55c47579 (diff)
qmlplugindump: Remove path for -dependencies argument
Do not print the full path passed to -dependencies in the file header. This avoids local paths to show up in the plugin.qmltypes file, and therefore in the Qt checkout. Task-number: QTBUG-70264 Change-Id: I7870d7d4e30e57684c62f4e353a6bf6d72dc5faf Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tools/qmlplugindump')
-rw-r--r--tools/qmlplugindump/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp
index 56bb633b9b..311e044ec3 100644
--- a/tools/qmlplugindump/main.cpp
+++ b/tools/qmlplugindump/main.cpp
@@ -1014,7 +1014,7 @@ int main(int argc, char *argv[])
#endif // QT_WIDGETS_LIB
QCoreApplication::setApplicationVersion(QLatin1String(QT_VERSION_STR));
- const QStringList args = app->arguments();
+ QStringList args = app->arguments();
const QString appName = QFileInfo(app->applicationFilePath()).baseName();
if (args.size() < 2) {
printUsage(appName);
@@ -1046,6 +1046,10 @@ int main(int argc, char *argv[])
return EXIT_INVALIDARGUMENTS;
}
dependenciesFile = args.at(iArg);
+
+ // Remove absolute path so that it does not show up in the
+ // printed command line inside the plugins.qmltypes file.
+ args[iArg] = QFileInfo(args.at(iArg)).fileName();
} else if (arg == QLatin1String("--merge")
|| arg == QLatin1String("-merge")) {
if (++iArg == args.size()) {