8.9. Upgrading your installation

8.9.1. Overview

Once you've successfully installed a Hackystat server, you will want to upgrade it or its tool infrastructure as new releases become available. This section describes this process, which is quite easy and generally takes no more than a few minutes.

8.9.2. The upgrade area: your public_hackystat directory

Let's assume that you followed our recommendation and have created a directory called "public_hackystat", which contains the Hackystat data directory, the Tomcat and Ant installations used for the Hackystat server, and the Hackystat binary distribution(s) themselves. This directory might look like the following:

c:\public_hackystat\
                    apache-ant-1.6.5\
                    apache-ant-1.6.5-bin.zip
                    apache-tomcat-5.5.12\
                    apache-tomcat-5.5.12.zip
                    hackystatdatadir\
                    hackystat-standard-7.0.1205\
                    hackystat-standard-7.0.1205.zip

In this example, you can see that we are storing user data in hackystatdatadir/, and we are currently running the release hackystat-standard-7.0.1205. Now let's say that we want to upgrade to a new release, such as hackystat-standard-7.1.1231.

8.9.3. Upgrading the Hackystat server

8.9.3.1. [Binary] Upgrading to a new binary distribution

Let's assume that a new stable release called hackystat-standard-7.1.123 is now available. Here's how you would install it.

  1. Download the hackystat-standard-7.1.123.zip file, and unzip it into the public_hackystat directory.

    The new directory contents might look like this:

    c:\public_hackystat\
                        apache-ant-1.6.5\
                        apache-ant-1.6.5-bin.zip
                        apache-tomcat-5.5.12\
                        apache-tomcat-5.5.12.zip
                        hackystatdatadir\
                        hackystat-standard-7.0.1205\
                        hackystat-standard-7.0.1205.zip
                        hackystat-standard-7.1.123\
                        hackystat-standard-7.1.123.zip
    

  2. Change directory to the new release and its subdirectory hackyCore_Build.

    In this case, you would end up in c:\public_hackystat\hackystat-standard-7.1.123\hackyCore_Build

  3. Invoke "ant -q hackyCore_Build.deployDist"

    This updates the running Tomcat server with the new version of Hackystat.

  4. Invoke "ant -q all.junit"

    This runs all of the unit tests associated with the new release, which verifies that the installation succeeded.

8.9.3.2. [Source] Upgrading your source installation

If you have installed Hackystat from sources, upgrading is even easier. Simply perform an "svn update" on your hackystat svn directory, which will update the sources to the most recently committed version. Then, invoke "ant -q freshStart" to rebuild and reinstall your Hackystat server.

8.9.4. Upgrading your tool infrastructure: Java, Tomcat, or Ant installations

Occasionally, new releases of Hackystat's tool infrastructure (Java, Ant, Tomcat) become available. Here is how to do the update:

  1. Shutdown Tomcat.

  2. Download the new version of Java, Tomcat, or Ant.

    Follow the instructions associated with the download to install it.

  3. Update relevant environment variables as necessary.

    Hackystat requires several environment variables to be defined. See Section 8.4, “Build tools installation” for details.

  4. Update the hackystat.site.properties file.

    See Section 8.5, “Hackystat system configuration” for details.

  5. Startup Tomcat, redeploy Hackystat, and rerun the unit tests.

    You should now be running the new version of Java, Tomcat, and/or Ant.