| 794 | } |
| 795 | |
| 796 | QString findJavaInstallation(const QString& jarFile) |
| 797 | { |
| 798 | // try to find java automatically based on the given jar file |
| 799 | if (!jarFile.isEmpty()) { |
| 800 | const auto s = getExecutableForJarFile(jarFile); |
| 801 | if (!s.isEmpty()) { |
| 802 | return s; |
| 803 | } |
| 804 | } |
| 805 | |
| 806 | // second attempt: look to the registry |
| 807 | const auto s = getJavaHome(); |
| 808 | if (!s.isEmpty()) { |
| 809 | return s; |
| 810 | } |
| 811 | |
| 812 | // not found |
| 813 | return {}; |
| 814 | } |
| 815 | |
| 816 | bool isBatchFile(const QFileInfo& target) |
| 817 | { |
no test coverage detected