/*---------------------------------------------------------------------------*\
  $Id$
  ---------------------------------------------------------------------------
  This software is released under a Berkeley-style license:

  Copyright (c) 2004 Brian M. Clapper. All rights reserved.

  Redistribution and use in source and binary forms are permitted provided
  that: (1) source distributions retain this entire copyright notice and
  comment; and (2) modifications made to the software are prominently
  mentioned, and a copy of the original software (or a pointer to its
  location) are included. The name of the author may not be used to endorse
  or promote products derived from this software without specific prior
  written permission.

  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

  Effectively, this means you can do what you want with the software except
  remove this notice or take advantage of the author's name. If you modify
  the software and redistribute your modified version, you must indicate that
  your version is a modification of the original, and you must provide either
  a pointer to or a copy of the original.
\*---------------------------------------------------------------------------*/

package org.clapper.curn;

import java.lang.System;

import java.util.ResourceBundle;
import java.util.MissingResourceException;

import org.clapper.util.misc.BuildInfo;

/**
 * <p>Contains the software version for the <i>org.clapper.util</i>
 * library. Also contains a main program which, invoked, displays the
 * name of the API and the version on standard output.</p>
 *
 * @version <tt>$Revision$</tt>
 *
 * @author Copyright &copy; 2004 Brian M. Clapper
 */
public final class Version
{
    /*----------------------------------------------------------------------*\
                             Public Constants
    \*----------------------------------------------------------------------*/

    public static final String VERSION = "1.3";

    /**
     * The name of the resource bundle containing the build info.
     */
    public static final String BUNDLE_NAME
        = "org.clapper.curn.BuildInfoBundle";

    /*----------------------------------------------------------------------*\
                               Main Program
    \*----------------------------------------------------------------------*/

    /**
     * Display version information only
     */
    public static void showVersion()
    {
        System.out.println ("curn, version " + VERSION);
    }

    /**
     * Display build information
     */
    public static void showBuildInfo()
    {
        BuildInfo buildInfo = new BuildInfo (BUNDLE_NAME);

        System.out.println ();
        showVersion();
        System.out.println ("Build date:     " +
                            buildInfo.getBuildDate());
        System.out.println ("Built by:       " +
                            buildInfo.getBuildUserID());
        System.out.println ("Built on:       " +
                            buildInfo.getBuildOperatingSystem());
        System.out.println ("Build Java VM:  " +
                            buildInfo.getBuildJavaVM());
        System.out.println ("Build compiler: " +
                            buildInfo.getBuildJavaCompiler());
        System.out.println ("Ant version:    " +
                            buildInfo.getBuildAntVersion());
    }
}

@@ -2113,16 +2113,18 @@
 N = %221.3
+.1
 %22;%0A%0A    

Version 1.3.1