forked from qt-creator/qt-creator
Android options: Stronger check for valid JDK location
The location should contain bin/javac Change-Id: If67ed4902b817f2d07302afb195e6dfbad881250 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -216,7 +216,7 @@ void AndroidSettingsWidget::check(AndroidSettingsWidget::Mode mode)
|
||||
m_javaState = NotSet;
|
||||
} else {
|
||||
Utils::FileName bin = m_androidConfig.openJDKLocation();
|
||||
bin.appendPath(QLatin1String("bin"));
|
||||
bin.appendPath(QLatin1String("bin/javac" QTC_HOST_EXE_SUFFIX));
|
||||
if (!m_androidConfig.openJDKLocation().toFileInfo().exists()
|
||||
|| !bin.toFileInfo().exists())
|
||||
m_javaState = Error;
|
||||
|
||||
Reference in New Issue
Block a user