head	1.8;
access;
symbols
	TIGRIS_1_1_0RC2:1.4
	TIGRIS_1_1_0RC1:1.4
	TIGRIS_1_1:1.4.0.4
	TIGRIS_1_0_8:1.4
	TIGRIS_1_0_8RC3:1.4
	TIGRIS_1_0_8RC2:1.4
	TIGRIS_1_0_8RC1:1.4
	TIGRIS_1_0_7:1.4
	TIGRIS_1_0_7RC3:1.4
	TIGRIS_1_0_7RC2:1.4
	TIGRIS_1_0_7RC1:1.4
	TIGRIS_1_0_6:1.4
	TIGRIS_1_0_6RC5:1.4
	TIGRIS_1_0_6RC4:1.4
	TIGRIS_1_0_6RC3:1.4
	TIGRIS_1_0_6RC2:1.4
	TIGRIS_1_0_6RC1:1.4
	TIGRIS_1_0_5:1.4
	TIGRIS_1_0_5RC6:1.4
	TIGRIS_1_0_5RC5:1.4
	TIGRIS_1_0_5RC4:1.4
	TIGRIS_1_0_5RC3:1.4
	TIGRIS_1_0_5RC2:1.4
	TIGRIS_1_0_5RC1:1.4
	TIGRIS_1_0_4:1.4
	TIGRIS_1_0_3:1.4
	TIGRIS_1_0_2:1.4
	TIGRIS_1_0_1:1.4
	TIGRIS_1_0:1.4.0.6
	TIGRIS_1_0_0:1.4
	TIGRIS_1_0_0_RC1:1.4.0.2
	TIGRIS_0_9_2_4:1.1
	TIGRIS_0_9_2_3:1.1
	HELM_PEER_PORT_BRANCH:1.3.0.2
	TURBINE_PEER:1.3
	TIGRIS_0_9_2_1:1.3
	TIGRIS_0_9_2:1.1.0.4
	TIGRIS_0_9_0:1.1.0.2;
locks; strict;
comment	@# @;


1.8
date	2001.08.11.09.08.02;	author dlr;	state Exp;
branches;
next	1.7;

1.7
date	2001.07.19.19.46.15;	author dlr;	state Exp;
branches;
next	1.6;

1.6
date	2001.07.18.10.05.13;	author dlr;	state Exp;
branches;
next	1.5;

1.5
date	2001.05.23.01.50.12;	author dlr;	state Exp;
branches;
next	1.4;

1.4
date	2001.02.21.22.16.35;	author lucas;	state Exp;
branches;
next	1.3;

1.3
date	2001.01.26.18.29.04;	author edk;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2001.01.26.05.24.06;	author edk;	state dead;
branches;
next	1.1;

1.1
date	2000.12.20.01.06.49;	author lucas;	state Exp;
branches
	1.1.4.1;
next	;

1.1.4.1
date	2001.02.21.03.17.26;	author lucas;	state Exp;
branches;
next	;

1.3.2.1
date	2001.01.28.01.02.18;	author dlr;	state dead;
branches;
next	;


desc
@@


1.8
log
@Upgrading to Turbine 3.0-dev, Fulcrum 1.0, and Torque 1.0.
@
text
@/* ================================================================
 * Copyright (c) 2000 Collab.Net.  All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
 * met:
 * 
 * 1. Redistributions of source code must retain the above copyright
 * notice, this list of conditions and the following disclaimer.
 * 
 * 2. Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * 
 * 3. The end-user documentation included with the redistribution, if
 * any, must include the following acknowlegement: "This product includes
 * software developed by Collab.Net (http://www.Collab.Net/)."
 * Alternately, this acknowlegement may appear in the software itself, if
 * and wherever such third-party acknowlegements normally appear.
 * 
 * 4. The hosted project names must not be used to endorse or promote
 * products derived from this software without prior written
 * permission. For written permission, please contact info@@collab.net.
 * 
 * 5. Products derived from this software may not use the "Tigris" name
 * nor may "Tigris" appear in their names without prior written
 * permission of Collab.Net.
 * 
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL COLLAB.NET OR ITS CONTRIBUTORS BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * ====================================================================
 * 
 * This software consists of voluntary contributions made by many
 * individuals on behalf of Collab.Net.
 */

package org.tigris.helm.host;

import java.util.*;
import java.sql.*;
import javax.servlet.http.*;

import org.apache.commons.util.exception.NestableException;

import org.apache.velocity.context.Context;

import org.tigris.helm.security.*;
import org.tigris.helm.tool.SessionManager;

/**
 * Servlet which displays version and build number
 * along with the instance that is being used.
 *
 * @@author Josh Lucas <a href="mailto:lucas@@collab.net">lucas@@collab.net</a>
 * @@version $Revision: 1.7 $
 *
 * Copyright (c) 1999, 2000 CollabNet, Inc.
 */
public class BuildInfo extends HelmServlet
{
    protected String processRequest(Context context)
        throws NestableException, RedirectException
    {
        String templateName = super.processRequest(context);

        //Get the info from the global properties
        String version = myProperties.getProperty("TIGRIS_VERSION");
        String buildNumber = myProperties.getProperty("TIGRIS_BUILD_NUMBER");
        String instance = myProperties.getProperty("tigrisBuildInstance");

        try
        {

            context.put("tigrisVersion",version);
            context.put("tigrisBuildNumber",buildNumber);
            context.put("tigrisBuildInstance",instance);

            return templateName;
        }
        catch (Exception e)
        {
            throw new NestableException("Error displaying BuildInfo", e);
        }
    }
}
@


1.7
log
@Removed Joist references.
@
text
@d53 1
a53 1
import org.apache.turbine.util.TurbineException;
d65 1
a65 1
 * @@version $Revision: 1.6 $
d72 1
a72 1
        throws TurbineException, RedirectException
d92 1
a92 1
            throw new TurbineException("Error displaying BuildInfo", e);
@


1.6
log
@Ported Joist Redirect*Exception to Helm.
@
text
@d57 1
a57 2
import org.joist.*;
import org.joist.util.*;
a58 3
import org.tigris.helm.security.RedirectException;

import org.tigris.helm.security.*;
d65 1
a65 1
 * @@version $Revision: 1.5 $
a68 1

@


1.5
log
@Ported Helm from WebMacro to Velocity.
@
text
@d60 1
a60 1
import org.joist.security.RedirectException;
d69 1
a69 1
 * @@version $Revision: 1.4 $
@


1.4
log
@updated property names
@
text
@d53 3
a55 3
import org.tigris.helm.security.*;
import org.webmacro.util.*;
import org.webmacro.servlet.*;
d59 1
a59 1
import org.joist.session.*;
d62 1
a62 1

d69 1
a69 1
 * @@version $Revision: 1.3 $
d76 2
a77 6
    static private Log log = new Log("buildinfo","BuildInfo");
    static private boolean debug = true;

    protected String 
        processRequest (Connection connection, WebContext context)
        throws HandlerException, RedirectException
d79 1
a79 1
        String templateName = super.processRequest(connection, context);
d97 1
a97 5
            String message = "Problem in BuildInfo: " 
                    + e.getMessage();
            if (debug) log.debug(message);
            log.exception(e);
            throw new HandlerException(message);
@


1.3
log
@readding all the files as part of the process of returning to the way
things were as of tuesday
@
text
@d69 1
a69 1
 * @@version $Revision: 1.1 $
d86 2
a87 2
        String version = myProperties.getProperty("tigrisVersion");
        String buildNumber = myProperties.getProperty("tigrisBuildNumber");
@


1.3.2.1
log
@Porting to the Turbine Peer system.  -dlr and leonardr
@
text
@d69 1
a69 1
 * @@version $Revision: 1.3 $
@


1.2
log
@revert this stuff to its state as of 2001/01/24 12:42:00 GMT -- with
the following exceptions, which have some different modifications so
they'll work with changes which have happened in joist:

ProjectNewsEdit.java
SkinManager.java
SkinStyleElementValueManager.java
StyleElementManager.java
StyleManager.java

it compiles.  i dunno if it works, though.
@
text
@@


1.1
log
@Initial import of BuildInfo servlet which will allow for the display of build/version info

PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d69 1
a69 1
 * @@version $Revision: $
@


1.1.4.1
log
@updating to support new version.properties
@
text
@d69 1
a69 1
 * @@version $Revision: 1.1 $
d86 2
a87 2
        String version = myProperties.getProperty("TIGRIS_VERSION");
        String buildNumber = myProperties.getProperty("TIGRIS_BUILD_NUMBER");
@


