Allow for arguments that have an equals as part of it
Since you can pass a define to org.gradle.jvmargs that can have the name=value approach, then we need to ensure that this is accounted for. Task-number: QTBUG-88989 Pick-to: 6.1 5.15 Change-Id: I2a795bff7ce683eca521b3a987293b3320accb6a Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
parent
7c4363ba4c
commit
a8a6558a84
@ -2363,9 +2363,9 @@ static GradleProperties readGradleProperties(const QString &path)
|
||||
if (line.trimmed().startsWith('#'))
|
||||
continue;
|
||||
|
||||
QList<QByteArray> prop(line.split('='));
|
||||
if (prop.size() > 1)
|
||||
properties[prop.at(0).trimmed()] = prop.at(1).trimmed();
|
||||
const int idx = line.indexOf('=');
|
||||
if (idx > -1)
|
||||
properties[line.left(idx).trimmed()] = line.mid(idx + 1).trimmed();
|
||||
}
|
||||
file.close();
|
||||
return properties;
|
||||
|
Loading…
Reference in New Issue
Block a user