Simplify JDK copy specification in archives build
This commit simplifies the JDK copy specification in the archives build so that it's a single line as opposed to an if/else with a repeated body. This approach reduces the maintenance cost of this code.
This commit is contained in:
parent
b1c5025498
commit
90d4437513
|
@ -61,14 +61,8 @@ CopySpec archiveFiles(CopySpec modulesFiles, String distributionType, String pla
|
|||
with binFiles(distributionType, oss, jdk)
|
||||
}
|
||||
if (jdk) {
|
||||
if ("darwin".equals(platform)) {
|
||||
into('jdk.app') {
|
||||
with jdkFiles(project, platform)
|
||||
}
|
||||
} else {
|
||||
into('jdk') {
|
||||
with jdkFiles(project, platform)
|
||||
}
|
||||
into("darwin".equals(platform) ? 'jdk.app' : 'jdk')
|
||||
with jdkFiles(project, platform)
|
||||
}
|
||||
}
|
||||
into('') {
|
||||
|
|
Loading…
Reference in New Issue