Found the reason, but I am not sure why this is an issue: I had to add import java.nio.file.* to the top of the gradle/tasks.gradle code. Then Files, Paths and StandardCopyOption could be found for the line:
Files.copy(Paths.get(resourceFile), Paths.get(toResourceFile), StandardCopyOption.REPLACE_EXISTING) Hope this helps someone else. And, if anyone has an idea why I'd love to know... Bill On Friday, April 1, 2022 at 9:50:22 AM UTC-4 William Jojo wrote: > Hello, > > I have tried clearing my .gradle cache and I am running out of ideas to > get these resources extracted. > > Any help is greatly appreciated. > > Thank you! > > On Friday, April 1, 2022 at 5:32:37 AM UTC-4 William Jojo wrote: > >> Hello all, >> >> Trying to extract template views using getResource and I keep getting the >> following: >> >> > Task :getResource FAILED >> >> FAILURE: Build failed with an exception. >> >> * Where: >> Script '/opt/workspace/6.4-new/cas-overlay-template/gradle/tasks.gradle' >> line: 341 >> >> * What went wrong: >> Execution failed for task ':getResource'. >> > Could not get unknown property 'Files' for task ':getResource' of type >> org.gradle.api.DefaultTask. >> >> I have tried: >> >> ./gradlew getResource -PresourceName=messages >> ./gradlew getResource -PresourceName=messages.properties >> ./gradlew getResource -PresourceName=footer >> ./gradlew getResource -PresourceName=footer.html >> and many other resources... >> >> The offending line in gradle/tasks.gradle is: >> >> Files.copy(Paths.get(resourceFile), Paths.get(toResourceFile), >> StandardCopyOption.REPLACE_EXISTING) >> >> Any ideas why? >> >> Thank you! >> Bill >> > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/c79d46c2-5670-41dd-a6bc-504f8b99a9fen%40apereo.org.
