blob: e9c58a9934c209710ea44019e06aaa4e32ac37f4 [file] [log] [blame]
/*
* Copyright (C) 2013 The University of Manchester
*
* See the file "LICENSE" for license terms.
*/
package org.taverna.server.master.common.version;
import static org.taverna.server.master.common.version.Constants.PATCH;
import static org.taverna.server.master.common.version.Constants.VERSION;
/**
* Common location for describing the version of the server.
*
* @author Donal Fellows
*/
public interface Version {
public static final String JAVA = VERSION + Constants.releaseChar + PATCH;
public static final String HTML = VERSION + Constants.releaseHEnt + PATCH;
public static final String XML = VERSION + Constants.releaseXEnt + PATCH;
}
/**
* The pieces of a version string.
*
* @author Donal Fellows
*/
interface Constants {
static final String MAJOR = "2";
static final String MINOR = "5";
static final String PATCH = "4";
static final char alphaChar = '\u03b1';
static final char betaChar = '\u03b2';
static final char releaseChar = '.';
static final String alphaHEnt = "α";
static final String betaHEnt = "β";
static final String releaseHEnt = ".";
static final String alphaXEnt = "α";
static final String betaXEnt = "β";
static final String releaseXEnt = ".";
static final String VERSION = MAJOR + "." + MINOR;
}