Don't attempt to create the smali.jar/baksmali.jar symlinks on windows.

Unsurprisingly, ant.symlink is unsupported on windows.
This commit is contained in:
Ben Gruver 2013-11-10 22:19:48 -08:00
parent b0295be60c
commit 318954d56b
2 changed files with 6 additions and 2 deletions

View File

@ -56,7 +56,9 @@ jar {
}
doLast {
ant.symlink(link: file("${destinationDir}/baksmali.jar"), resource: archivePath, overwrite: true)
if (!System.getProperty("os.name").toLowerCase().contains("windows")) {
ant.symlink(link: file("${destinationDir}/baksmali.jar"), resource: archivePath, overwrite: true)
}
}
}

View File

@ -142,7 +142,9 @@ jar {
}
doLast {
ant.symlink(link: file("${destinationDir}/smali.jar"), resource: archivePath, overwrite: true)
if (!System.getProperty("os.name").toLowerCase().contains("windows")) {
ant.symlink(link: file("${destinationDir}/smali.jar"), resource: archivePath, overwrite: true)
}
}
}