jasig-cas IRC Logs-2011-10-06

[11:50:43 CDT(-0500)] <brandon> hello

[11:50:55 CDT(-0500)] <brandon> i am trying to edit the default cas theme

[11:51:10 CDT(-0500)] <brandon> i made changes in cas.css but how do i make those change live?

[11:51:29 CDT(-0500)] <serac> Use this:

[11:51:40 CDT(-0500)] <serac> https://wiki.jasig.org/display/CASUM/Best+Practice+-+Setting+Up+CAS+Locally+using+the+Maven2+WAR+Overlay+Method

[11:51:51 CDT(-0500)] <serac> Anything else is insanity, really.

[11:52:15 CDT(-0500)] <serac> Takes more time up front, saves time (and headaches) in the long run.

[11:54:47 CDT(-0500)] <brandon> ok, thanks

[12:02:46 CDT(-0500)] <brandon> so should i copy stuff from the cas source pom.xml to my local pom.xml file?

[12:02:58 CDT(-0500)] <brandon> dependencies and repositories, etc...

[12:03:11 CDT(-0500)] <serac> No.

[12:03:18 CDT(-0500)] <serac> The only dependency would be cas-server-webapp.

[12:03:25 CDT(-0500)] <serac> You'd get the cas stuff via transitivity.

[12:03:36 CDT(-0500)] <brandon> ok, because this is an overlay, right?

[12:03:40 CDT(-0500)] <serac> correct

[12:05:39 CDT(-0500)] <brandon> so if i wanted to override parts of the default theme, would i just create the same directory structure with the same files in my local directory?

[12:06:13 CDT(-0500)] <serac> exactly

[12:07:01 CDT(-0500)] <brandon> and then to deploy, i would mvn package inside the local directory, copy the war to tomcat/webapps and start it?

[12:07:43 CDT(-0500)] <serac> yes

[12:07:48 CDT(-0500)] <brandon> awesome, thanks

[12:07:54 CDT(-0500)] <serac> np

[12:29:33 CDT(-0500)] <brandon> serac, back again. i created cas-server-webapp/src/main/webapp/themes/default/cas.css in my local cas directory, mvn clean package, and redeployed it but my overlay doesn't seem to be taking effect

[12:29:45 CDT(-0500)] <brandon> anything i missed?

[12:46:25 CDT(-0500)] <serac> Did you clean out the old unpacked webapp in $TOMCAT_HOME/webapps/?

[12:47:18 CDT(-0500)] <brandon> the cas folder itself?

[12:47:55 CDT(-0500)] <serac> Yes, rm -fR it.

[12:48:00 CDT(-0500)] <brandon> i just copied the war into the folder, thought tomcat would handle it

[12:48:06 CDT(-0500)] <brandon> do i need to do that all the time?

[12:48:23 CDT(-0500)] <serac> I always do to be sure. I've seen conflicts in past.

[12:48:50 CDT(-0500)] <serac> Tomcat should unpack a new deployable (.war) if its timestamp is newer, but again I've had trouble in past.

[12:49:08 CDT(-0500)] <serac> You on windows or mac?

[12:49:39 CDT(-0500)] <brandon> cas is on a red hat server

[12:51:20 CDT(-0500)] <serac> mvn clean package && rm -fR $CATALINA_HOME/webapps/cas* && cp target/cas.war $CATALINA_HOME/webapps/

[12:55:40 CDT(-0500)] <brandon> ok, looks like that was the problem

[13:38:13 CDT(-0500)] <brandon> it was working, now when i deploy, my changes get overwritten and it goes back to how it was

[13:45:59 CDT(-0500)] <brandon> do you need to do anything special when deploying an overlay besides removing the cas.war and cas folder in tomcat/webapps?

[15:21:48 CDT(-0500)] <EricDalquist> hey serac are you around?

[16:07:58 CDT(-0500)] <foxnesn> hi