forked from qt-creator/qt-creator
More FileName::pathAppended()
Change-Id: Ie20ec34ea9712b3ec49e6233b23cef84c2019f03 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -1077,9 +1077,7 @@ QProcessEnvironment AndroidConfigurations::toolsEnvironment(const AndroidConfig
|
||||
Utils::FileName jdkLocation = config.openJDKLocation();
|
||||
if (!jdkLocation.isEmpty()) {
|
||||
env.set("JAVA_HOME", jdkLocation.toUserOutput());
|
||||
Utils::FileName binPath = jdkLocation;
|
||||
binPath.appendPath("bin");
|
||||
env.prependOrSetPath(binPath.toUserOutput());
|
||||
env.prependOrSetPath(jdkLocation.pathAppended("bin").toUserOutput());
|
||||
}
|
||||
return env.toProcessEnvironment();
|
||||
}
|
||||
|
||||
@@ -591,9 +591,9 @@ void AndroidRunnerWorker::handleJdbWaiting()
|
||||
|
||||
auto jdbPath = AndroidConfigurations::currentConfig().openJDKLocation().pathAppended("bin");
|
||||
if (Utils::HostOsInfo::isWindowsHost())
|
||||
jdbPath.appendPath("jdb.exe");
|
||||
jdbPath = jdbPath.pathAppended("jdb.exe");
|
||||
else
|
||||
jdbPath.appendPath("jdb");
|
||||
jdbPath = jdbPath.pathAppended("jdb");
|
||||
|
||||
QStringList jdbArgs("-connect");
|
||||
jdbArgs << QString("com.sun.jdi.SocketAttach:hostname=localhost,port=%1")
|
||||
|
||||
Reference in New Issue
Block a user