mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Use dirMode and fileMode to configure CLI archive entry permissions
Closes gh-21453
This commit is contained in:
parent
d30a0ee811
commit
210e565741
@ -131,10 +131,11 @@ def configureArchive(archive) {
|
||||
into "lib/"
|
||||
}
|
||||
archive.from(file("src/main/content")) {
|
||||
eachFile { it.mode = it.directory ? 0755 : 0644 }
|
||||
dirMode = 0755
|
||||
fileMode = 0644
|
||||
}
|
||||
archive.from(file("src/main/executablecontent")) {
|
||||
eachFile { it.mode = 0755 }
|
||||
fileMode = 0755
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user