It looks like an issue from tasks.gradle and the path separators:
projects\cas-overlay-template\build/cas-resources
which causes string mismatch with
def toResourceFile = resourceFile.replace(fromFile, resourcesDir)
I added/modified to the task.gradle file getResource function:
def resourcesDir = "${projectDir}/src/main/resources"
def fileName = results[0].name
def toResourceFile = "${resourcesDir}/${fileName}"
Now it executes and places resource in project/src/main/resource
Not sure if this is the correct solution or not. I also expected if I
overlaid static/image/cas-logo that it would place in the
appropriate src/resources folder but that is not the case
-psv
On Thu, Aug 20, 2020 at 11:13 PM Pablo Vidaurri <[email protected]>
wrote:
> Using CAS 6.2 template and using the following command to overlay the
> message.properties file:
> gradlew getResource -PresourceName=messages.properties
>
> The file does not get copied into my src/main/resources folder. This is
> the output of the command:
> > Task :getResource
> Copied file
> D:\workspaces\Spring_Workspace\cas-overlay-template\build\cas-resources\messages.properties
> to
> D:\workspaces\Spring_Workspace\cas-overlay-template\build\cas-resources\messages.properties
>
> the From and To paths are the same. Is this a bug?
> -psv
>
--
- 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/CAOe-DO9Bh%3DvqxRJswFW07RU69mgiFkedtDVqphL2SU4o4X%3DdQQ%40mail.gmail.com.