I just pulled v6.3 of https://github.com/apereo/cas-overlay-template. on a 
MAC.

Does this appear to still be an issue. I solved it similarly to what was 
described here.

`**gradle/tasks.gradle**` - line 300

Replace: 

        def resourcesDir = "src/main/resources"

With:

        def resourcesDir = "${projectDir}/src/main/resources"

I haven't tested very type of resource: I wanted to pull fragments, but it 
went from not pulling those to working.  



On Tuesday, August 25, 2020 at 12:56:17 AM UTC-5 Pablo Vidaurri wrote:

> 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/27bd3876-f5d0-4f8b-80d2-8ea84121fccen%40apereo.org.

Reply via email to