how to set file permissions for some files in a Co...
# community-support
h
how to set file permissions for some files in a Copy task? I've tried two ways:
Copy code
filesMatching("**/*.sh") { filePermissions { user { execute = true } } }
and
Copy code
filePermissions { filesMatching("**/*.sh") { user { execute = true } } }
neither gives the expected result. First option results in an error
The value for this property is final and cannot be changed any further.
while the 2nd option makes all files executable, not just the
*.sh
files
v
I think the first should work fine. What is the full error you get? Can you share a build
--scan
URL?
h
ugh... found the issue... it should be
Copy code
filesMatching("**/*.sh") { permissions { user { execute = true } } }
👌 1