| apply plugin: 'sdk-files' |
| apply plugin: 'windows-setup' |
| item( { getExeName("windows32FindJavaExecutable") } ) { |
| builtBy 'windows32FindJavaExecutable' |
| item( { getExeName("windows64FindJavaExecutable") } ) { |
| builtBy 'windows64FindJavaExecutable' |
| def getExeName(String name) { |
| // binaries will return a set of binaries |
| def binaries = executables.findJava.binaries.matching { it.name == name } |
| // calling .exeFile on the set returns an array with the result from each item in the set... |
| return binaries.executableFile.get(0) |