Hi,

This might help as well : https://wiki.jasig.org/display/CASUM/Upgrading.
Don't hesitate to improve this documentation with your feedbacks...
Best regards,
Jérôme



2013/12/5 Trenton D. Adams <[email protected]>

> Good day,
>
> This is the approach I use; assuming you use the war overlay method, and
> linux for a development environment, this should work for you.  Going from
> 3.4.6 to 3.5.2 should be fairly easy.
>
> - update the version for the cas dependencies
> - run mvn dependency:resolve
> - diff the two webapp jars in ~/.m2/repository/ (expected you know how a
> maven repo works) by using jardiff
> - make sure any of the CAS related files that you've changed are updated
> with new changes.  Some examples are...
>   - cas.properties
>   - deployerConfigContext.xml
>   - login-webflow.xml
>   - ticketGrantingTicketCookieGenerator.xml
>   - externalResources.xml
>   - default_views.properties
>   - all JSP files
>
> A simple way of comparing the config files above, is to extract them from
> the WAR, and copy them over top of our files. Then, from there, you just
> need to use your favourite tool to compare. That could be eclipse, IDEA, or
> svn command line.  I usually do an "svn diff" and pipe it to
> /usr/share/vim/vim73/macros/less.sh.  Then, I use IDEA to adjust the
> files in it's GUI compare tool, so that it still has my customizations, but
> has all the new stuff too.
>
>
> The jardiff script is below...
> #!/bin/sh
>
>
> function jhelp()
> {
>   printf "Extracts two JAR files passed in to /tmp/JAR1 and /tmp/JAR2, and
> compares them\n";
>   printf "$0 [ -k|--keep don't remove temp directories]  [ -h|--help ]
> jar1.jar jar2.jar\n";
> }
>
> # get the options and evaluate them
> OPTS=`getopt -o kh? -l keep,help -- "$@"`
> eval set -- "$OPTS"
> while true ; do
>   case "$1" in
>     -k|--keep)
>       KEEP=true ;
>       shift 1 ;;
>     -\?|-h|--help)
>       jhelp ;
>       exit 0;
>       break ;;
>     --)
>       shift ;
>       break ;;
>     *)
>       echo "Internal error!" ;
>       exit 1 ;;
>   esac
> done
>
> JAR1=`readlink -f $1`
> JAR2=`readlink -f $2`
>
>
> if [ "$JAR1" = "" -o "$JAR2" = "" ]; then
>   echo "Two JAR arguments required"
>   jhelp
> fi
>
>
> rm -rf /tmp/JAR1 /tmp/JAR2
> mkdir /tmp/JAR1 2>&1 >/dev/null
> mkdir /tmp/JAR2 2>&1 >/dev/null
>
> (cd /tmp/JAR1 ; jar -xvf $JAR1) 2>&1 >/dev/null
> (cd /tmp/JAR2 ; jar -xvf $JAR2) 2>&1 >/dev/null
>
> diff -ru /tmp/JAR1 /tmp/JAR2
>
> if [ "$KEEP" != "true" ]; then
>   rm -rf /tmp/JAR1
>   rm -rf /tmp/JAR2
> fi
>
> On 13-12-05 02:23 PM, Malarvizhi Perumalraja wrote:
>
>> Hi,
>>
>>                  We are currently at CAS Server 3.4.6 version and using
>> Maven Overlay Method. Planning to upgrade to the latest version of CAS.
>>
>> Can anyone please suggest the right approach. Can I upgrade straight
>> from 3.4.6 to 3.5.2 Release?
>>
>> Thank you,
>>
>> Malar
>>
>>
>> This email is intended for the designated recipient only, and may be
>> confidential, non-public, proprietary, protected by the attorney/client
>> or other privilege. Unauthorized reading, distribution, copying or other
>> use of this communication is prohibited and may be unlawful. Receipt by
>> anyone other than the intended recipients should not be deemed a waiver
>> of any privilege or protection. If you are not the intended recipient or
>> if you believe that you have received this email in error, please notify
>> the sender immediately and delete all copies from your computer system
>> without reading, saving, or using it in any manner. Although it has been
>> checked for viruses and other malicious software, malware, we do not
>> warrant, represent or guarantee in any way that this communication is
>> free of malware or potentially damaging defects. All liability for any
>> actual or alleged loss, damage, or injury arising out of or resulting in
>> any way from the receipt, opening or use of this email is expressly
>> disclaimed.
>>
>> --
>> You are currently subscribed to [email protected] as:
>> [email protected]
>> To unsubscribe, change settings or access archives, see
>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>
>>
>
> --
> Trenton D. Adams
> Senior Systems Analyst/Web Software Developer
> Navy Penguins at your service!
> Athabasca University
> (780) 675-6195
> :wq!
>
> --
>    This communication is intended for the use of the recipient to whom it
>    is addressed, and may contain confidential, personal, and or privileged
>    information. Please contact us immediately if you are not the intended
>    recipient of this communication, and do not copy, distribute, or take
>    action relying on it. Any communications received in error, or
>    subsequent reply, should be deleted or destroyed.
> ---
>
> --
> You are currently subscribed to [email protected] as:
> [email protected]
> To unsubscribe, change settings or access archives, see
> http://www.ja-sig.org/wiki/display/JSG/cas-user
>

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to