I more or less ran into it by accident. I had a mashup of the basic pom.xml
from the overlay template and some bits from our old overlay and was trying
to troubleshoot why Maven was not copying my views customizations from
src/main/resources/ but would copy them (to two different locations in the
WAR) if I put them in src/main/webapp/. Eventually I found the <resources>
tag in my pom.xml just needed to point to the correct location.

I don't know how this would translate to Gradle, that's an arcane art I've
yet to master.


Best regards,
--
Carlos M. Fernández
Enterprise Systems Manager
*Saint Joseph’s University*
Philadelphia PA 19131
T: +1 610 660 1501

On Fri, Jul 21, 2017 at 4:27 PM, Toby Archer <sandsl...@gmail.com> wrote:

> Hmmm. I'm using gradle, so I can't quite copy paste that. But that might
> be what I'm missing. Where did you find such guidance?
>
> On Friday, July 21, 2017 at 1:35:17 PM UTC-5, cfernand wrote:
>>
>> Where does project/build/resources/resource/directory in your pom.xml
>> point to? In my case I had to explicitly add this to project/build:
>>
>> <resources>
>>     <resource>
>>         <directory>src/main/resources</directory>
>>     </resource>
>> </resources>
>>
>> Once I did that Maven merged my changes from the overlay into the WAR
>> file.
>>
>>
>> Best regards,
>> --
>> Carlos M. Fernández
>> Enterprise Systems Manager
>> *Saint Joseph’s University*
>> Philadelphia PA 19131
>> T: +1 610 660 1501
>>
>> On Thu, Jul 20, 2017 at 2:12 PM, Toby Archer <sand...@gmail.com> wrote:
>>
>>> Now I'm back to nothing appears to be happening. I have:
>>>
>>> cas-gradle-overlay-templates/src/main/resources/templates/ca
>>> sLoginView.html
>>> and
>>> etc/cas/config/templates/casLoginView.html
>>>
>>> In both of these files I removed the fragment that contains "Links to
>>> CAS Resources", specifically this "<div 
>>> th:replace="fragments/cas-resources-list"
>>> />" that should mean that on the default login screen the panel on the
>>> right with the list of links disappears. Nothing happens, my alteration is
>>> completely ignored. if I set
>>>
>>> spring.thymeleaf.prefix=file:/etc/cas/config/templates/
>>>
>>> It's buggy, but at least the change is there.
>>>
>>> On Thursday, July 20, 2017 at 12:00:26 PM UTC-5, Dmitriy Kopylenko wrote:
>>>>
>>>> No need to set any properties. Get rid of these:
>>>>
>>>> spring.thymeleaf.prefix=classpath:/templates/
>>>> cas.view.cas2.success=protocol/2.0/casServiceValidationSuccess
>>>> cas.view.cas3.success=protocol/3.0/casServiceValidationSuccess
>>>>
>>>> D.
>>>>
>>>>
>>>> From: Toby Archer <sand...@gmail.com>
>>>> Reply: Toby Archer <sand...@gmail.com>
>>>> Date: July 20, 2017 at 12:56:46 PM
>>>> To: CAS Community <cas...@apereo.org>
>>>> Cc: sand...@gmail.com <sand...@gmail.com>, dkopy...@unicon.net
>>>> <dkop...@unicon.net>
>>>>
>>>> Subject:  Re: [cas-user] Where exactly can views be found?
>>>>
>>>> Thanks! but alas, I am not quite off the ground yet. But I feel like it
>>>> is just a little detail somewhere I'm missing. So in
>>>> cas-gradle-overlay-template I made src/main/resources/templates. Just to be
>>>> quick and easy I copied the entire templates directory from the repo
>>>> listed. So I should have every possible template. I added what appeared to
>>>> be the appropriate settings:
>>>>
>>>> spring.thymeleaf.prefix=classpath:/templates/
>>>>> cas.view.cas2.success=protocol/2.0/casServiceValidationSuccess
>>>>> cas.view.cas3.success=protocol/3.0/casServiceValidationSuccess
>>>>>
>>>>
>>>> I added <!-- sucess! --> to the two views listed above, but my change
>>>> didn't show up so far as I could tell.
>>>>
>>>> I tried classpath:/templates, and that didn't seem to do anything. When
>>>> I was working with the service registry and the associated json files it
>>>> copied the /services/ directory over in the process of building, but that
>>>> was because it was in etc/cas/config. Incidentally I tried adding the
>>>> templates directory to that directory. This also didn't appear to have any
>>>> effect. So I changed the property to 
>>>> spring.thymeleaf.prefix=file:/etc/cas/config/templates,
>>>> this seems to have worked, but now if I don't include every template blows
>>>> up instead of using the default one.
>>>>
>>>> On Thursday, July 20, 2017 at 10:59:33 AM UTC-5, Dmitriy Kopylenko
>>>> wrote:
>>>>>
>>>>> There is no such directory in the overlay. You need to create one i.e.
>>>>> src/main/resources/templates and then copy the default templates that you
>>>>> are going to be modifying from here: https://github.com/apere
>>>>> o/cas/tree/master/webapp/resources/templates and off you go.
>>>>>
>>>>> Cheers,
>>>>> D.
>>>>>
>>>>>
>>>>> From: Toby Archer <sand...@gmail.com>
>>>>> Reply: cas-...@apereo.org <cas...@apereo.org>
>>>>> Date: July 20, 2017 at 11:53:03 AM
>>>>> To: CAS Community <cas...@apereo.org>
>>>>> Subject:  [cas-user] Where exactly can views be found?
>>>>>
>>>>> Here in the documentation: https://apereo.github.io/cas/5
>>>>> .1.x/installation/User-Interface-Customization-Views.html
>>>>> <http://spamburger.sju.edu/canit/urlproxy.php?_q=aHR0cHM6Ly9hcGVyZW8uZ2l0aHViLmlvL2Nhcy81LjEueC9pbnN0YWxsYXRpb24vVXNlci1JbnRlcmZhY2UtQ3VzdG9taXphdGlvbi1WaWV3cy5odG1s&_s=Y2Zlcm5hbmQ%3D&_c=6612b28e>
>>>>>
>>>>> The first line says:
>>>>>
>>>>> The views are found at src/main/resources/templates.
>>>>>
>>>>>
>>>>> Where exactly is that directory?  I have no such directory in my clone
>>>>> of cas-gradle-overlay-template, I checked the github page,
>>>>> https://github.com/apereo/cas, and couldn't find anything that really
>>>>> made much sense. Theming is my last major hurtle. Any advice is quite
>>>>> welcome.
>>>>>
>>>>> ~TA
>>>>> --
>>>>> - CAS gitter chatroom: https://gitter.im/apereo/cas
>>>>> - CAS mailing list guidelines: https://apereo.github.io/cas/M
>>>>> ailing-Lists.html
>>>>> <http://spamburger.sju.edu/canit/urlproxy.php?_q=aHR0cHM6Ly9hcGVyZW8uZ2l0aHViLmlvL2Nhcy9NYWlsaW5nLUxpc3RzLmh0bWw%3D&_s=Y2Zlcm5hbmQ%3D&_c=77a03ca9>
>>>>> - CAS documentation website: https://apereo.github.io/cas
>>>>> <http://spamburger.sju.edu/canit/urlproxy.php?_q=aHR0cHM6Ly9hcGVyZW8uZ2l0aHViLmlvL2Nhcw%3D%3D&_s=Y2Zlcm5hbmQ%3D&_c=9d7960c0>
>>>>> - CAS project website: https://github.com/apereo/cas
>>>>> ---
>>>>> 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 cas-user+u...@apereo.org.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/725e
>>>>> b3fb-fd9e-4186-b133-f427fd28666b%40apereo.org
>>>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/725eb3fb-fd9e-4186-b133-f427fd28666b%40apereo.org?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>>
>>>>
>>>> ------------------------------
>>>>
>>>> This email has been scanned for spam and viruses by Proofpoint
>>>> Essentials. Click here
>>>> <https://us2.proofpointessentials.com/index01.php?mod_id=11&mod_option=logitem&mail_id=1500569804-DBODCe4cMFnf&r_address=dkopylenko%40unicon.net&report=1>
>>>> to report this email as spam.
>>>>
>>>> =
>>>>
>>>> --
>>> - CAS gitter chatroom: https://gitter.im/apereo/cas
>>> - CAS mailing list guidelines: https://apereo.github.io/cas/M
>>> ailing-Lists.html
>>> <http://spamburger.sju.edu/canit/urlproxy.php?_q=aHR0cHM6Ly9hcGVyZW8uZ2l0aHViLmlvL2Nhcy9NYWlsaW5nLUxpc3RzLmh0bWw%3D&_s=Y2Zlcm5hbmQ%3D&_c=77a03ca9>
>>> - CAS documentation website: https://apereo.github.io/cas
>>> <http://spamburger.sju.edu/canit/urlproxy.php?_q=aHR0cHM6Ly9hcGVyZW8uZ2l0aHViLmlvL2Nhcw%3D%3D&_s=Y2Zlcm5hbmQ%3D&_c=9d7960c0>
>>> - CAS project website: https://github.com/apereo/cas
>>> ---
>>> 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 cas-user+u...@apereo.org.
>>> To view this discussion on the web visit https://groups.google.com/a/ap
>>> ereo.org/d/msgid/cas-user/39ddcaff-dd17-4997-b9fb-d1596d4267
>>> 6d%40apereo.org
>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/39ddcaff-dd17-4997-b9fb-d1596d42676d%40apereo.org?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>> --
> - CAS gitter chatroom: https://gitter.im/apereo/cas
> - CAS mailing list guidelines: https://apereo.github.io/cas/
> Mailing-Lists.html
> <http://spamburger.sju.edu/canit/urlproxy.php?_q=aHR0cHM6Ly9hcGVyZW8uZ2l0aHViLmlvL2Nhcy9NYWlsaW5nLUxpc3RzLmh0bWw%3D&_s=Y2Zlcm5hbmQ%3D&_c=77a03ca9>
> - CAS documentation website: https://apereo.github.io/cas
> <http://spamburger.sju.edu/canit/urlproxy.php?_q=aHR0cHM6Ly9hcGVyZW8uZ2l0aHViLmlvL2Nhcw%3D%3D&_s=Y2Zlcm5hbmQ%3D&_c=9d7960c0>
> - CAS project website: https://github.com/apereo/cas
> ---
> 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 cas-user+unsubscr...@apereo.org.
> To view this discussion on the web visit https://groups.google.com/a/
> apereo.org/d/msgid/cas-user/c5180a09-8bb3-4da9-9195-
> cdc747b97539%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/c5180a09-8bb3-4da9-9195-cdc747b97539%40apereo.org?utm_medium=email&utm_source=footer>
> .
>

-- 
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
--- 
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 cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAE7KU872zYSddEMt1bgke81oWDTyEHVQ%2BmTD8yRXb%3D8OQ67B4w%40mail.gmail.com.

Reply via email to