/*
 * FindBugs - Find bugs in Java programs
 * Copyright (C) 2003,2004 University of Maryland
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package edu.umd.cs.findbugs;

/**
 * Version number and release date information.
 */
public class Version {
	/** Major version number. */
	public static final int MAJOR = 0;

	/** Minor version number. */
	public static final int MINOR = 7;

	/** Patch level. */
	public static final int PATCHLEVEL = 2;

	/** Release version string. */
	public static final String RELEASE = MAJOR + "." + MINOR + "." + PATCHLEVEL;

	/** Release date. */
	public static final String DATE = "March 22, 2004";

	/** Version of Eclipse UI plugin. */
	public static final String ECLIPSE_UI_VERSION = "0.0.4";

	/** FindBugs website. */
	public static final String WEBSITE = "http://findbugs.sourceforge.net";

	/** Downloads website. */
	public static final String DOWNLOADS_WEBSITE = "http://prdownloads.sourceforge.net/findbugs";

	public static void main(String[] argv) {
		if (argv.length != 1)
			usage();

		String arg = argv[0];

		if (arg.equals("-release"))
			System.out.println(RELEASE);
		else if (arg.equals("-date"))
			System.out.println(DATE);
		else if (arg.equals("-props")) {
			System.out.println("release.number="+RELEASE);
			System.out.println("release.date="+DATE);
			System.out.println("eclipse.ui.version="+ECLIPSE_UI_VERSION);
			System.out.println("findbugs.website="+WEBSITE);
			System.out.println("findbugs.downloads.website="+DOWNLOADS_WEBSITE);
		} else
			usage();
	}

	private static void usage() {
		System.err.println("Usage: " + Version.class.getName() + 
                       "  (-release|-date|-props)");
		System.exit(1);
	}
}

// vim:ts=4

/*
 * FindBugs - Find bugs in Java programs
 * Copyright (C) 2003,2004 University of Maryland
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package edu.umd.cs.findbugs;

/**
 * Version number and release date information.
 */
public class Version {
	/** Major version number. */
	public static final int MAJOR = 0;

	/** Minor version number. */
	public static final int MINOR = 7;

	/** Patch level. */
	public static final int PATCHLEVEL = 3;

	/** Release version string. */
	public static final String RELEASE = MAJOR + "." + MINOR + "." + PATCHLEVEL;

	/** Release date. */
	public static final String DATE = "May 7, 2004";

	/** Version of Eclipse UI plugin. */
	public static final String ECLIPSE_UI_VERSION = "0.0.5";

	/** FindBugs website. */
	public static final String WEBSITE = "http://findbugs.sourceforge.net";

	/** Downloads website. */
	public static final String DOWNLOADS_WEBSITE = "http://prdownloads.sourceforge.net/findbugs";

	public static void main(String[] argv) {
		if (argv.length != 1)
			usage();

		String arg = argv[0];

		if (arg.equals("-release"))
			System.out.println(RELEASE);
		else if (arg.equals("-date"))
			System.out.println(DATE);
		else if (arg.equals("-props")) {
			System.out.println("release.number="+RELEASE);
			System.out.println("release.date="+DATE);
			System.out.println("eclipse.ui.version="+ECLIPSE_UI_VERSION);
			System.out.println("findbugs.website="+WEBSITE);
			System.out.println("findbugs.downloads.website="+DOWNLOADS_WEBSITE);
		} else
			usage();
	}

	private static void usage() {
		System.err.println("Usage: " + Version.class.getName() + 
                       "  (-release|-date|-props)");
		System.exit(1);
	}
}

// vim:ts=4

Update for 0.7.3 release (hopefully tomorrow)