Commit 899dac18 authored by Daniel Teske's avatar Daniel Teske

Android: Don't search for ant.bat on linux

Change-Id: Ia149f8eed040d5fe370286025cf76f7a6e7f47db
Reviewed-by: default avatarChristian Stromme <christian.stromme@digia.com>
parent 127c99ff
......@@ -316,7 +316,11 @@ void AndroidSettingsWidget::searchForAnt(const QString &location)
foreach (const QString &file, parentFolder.entryList()) {
if (file.startsWith(QLatin1String("apache-ant"))) {
Utils::FileName ant = Utils::FileName::fromString(parentFolder.absolutePath());
ant.appendPath(file).appendPath(QLatin1String("bin")).appendPath(QLatin1String("ant.bat"));
ant.appendPath(file).appendPath(QLatin1String("bin"));
if (Utils::HostOsInfo::isWindowsHost())
ant.appendPath(QLatin1String("ant.bat"));
else
ant.appendPath(QLatin1String("ant"));
if (ant.toFileInfo().exists()) {
m_androidConfig.antLocation = ant;
m_ui->AntLocationLineEdit->setText(ant.toUserOutput());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment