Skip to content

Commit

Permalink
Fixed error that avoided the rename of unpacked folders
Browse files Browse the repository at this point in the history
  • Loading branch information
andsel committed Jul 7, 2021
1 parent b61f008 commit 03b0604
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,8 @@ tasks.register("copyFilebeat") {
copy {
from tarTree(resources.gzip(project.ext.filebeatDownloadLocation))
into "./build/"

file("./build/${project.ext.unpackedFilebeatName}").renameTo('./build/filebeat')
}
file("./build/${project.ext.unpackedFilebeatName}").renameTo('./build/filebeat')
System.out.println "Unzipped ${project.ext.filebeatDownloadLocation} to ./build/filebeat"
System.out.println "Deleting ${project.ext.filebeatDownloadLocation}"
delete(project.ext.filebeatDownloadLocation)
Expand Down Expand Up @@ -561,13 +560,15 @@ tasks.register("deleteLocalEs", Delete) {
tasks.register("copyEs"/*, Copy*/) {
dependsOn = [downloadEs, deleteLocalEs]
doLast {
println "copyEs executing.."
copy {
from tarTree(resources.gzip(project.ext.elasticsearchDownloadLocation))
into "./build/"
file("./build/${project.ext.unpackedElasticsearchName}").renameTo('./build/elasticsearch')
System.out.println "Unzipped ${project.ext.elasticsearchDownloadLocation} to ./build/elasticsearch"
System.out.println "Deleting ${project.ext.elasticsearchDownloadLocation}"
}

file("./build/${project.ext.unpackedElasticsearchName}").renameTo('./build/elasticsearch')
System.out.println "Unzipped ${project.ext.elasticsearchDownloadLocation} to ./build/elasticsearch"
System.out.println "Deleting ${project.ext.elasticsearchDownloadLocation}"
}
}

Expand Down

0 comments on commit 03b0604

Please sign in to comment.