aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/Version.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-08-13 18:34:33 +0300
committerArtur Signell <artur@vaadin.com>2012-08-13 19:18:33 +0300
commite85d933b25cc3c5cc85eb7eb4b13b950fd8e1569 (patch)
tree9ab6f13f7188cab44bbd979b1cf620f15328a03f /src/com/vaadin/Version.java
parent14dd4d0b28c76eb994b181a4570f3adec53342e6 (diff)
downloadvaadin-framework-e85d933b25cc3c5cc85eb7eb4b13b950fd8e1569.tar.gz
vaadin-framework-e85d933b25cc3c5cc85eb7eb4b13b950fd8e1569.zip
Moved server files to a server src folder (#9299)
Diffstat (limited to 'src/com/vaadin/Version.java')
-rw-r--r--src/com/vaadin/Version.java74
1 files changed, 0 insertions, 74 deletions
diff --git a/src/com/vaadin/Version.java b/src/com/vaadin/Version.java
deleted file mode 100644
index eb6d73e7e0..0000000000
--- a/src/com/vaadin/Version.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
-@VaadinApache2LicenseForJavaFiles@
- */
-package com.vaadin;
-
-import java.io.Serializable;
-
-public class Version implements Serializable {
- /**
- * The version number of this release. For example "6.2.0". Always in the
- * format "major.minor.revision[.build]". The build part is optional. All of
- * major, minor, revision must be integers.
- */
- private static final String VERSION;
- /**
- * Major version number. For example 6 in 6.2.0.
- */
- private static final int VERSION_MAJOR;
-
- /**
- * Minor version number. For example 2 in 6.2.0.
- */
- private static final int VERSION_MINOR;
-
- /**
- * Version revision number. For example 0 in 6.2.0.
- */
- private static final int VERSION_REVISION;
-
- /**
- * Build identifier. For example "nightly-20091123-c9963" in
- * 6.2.0.nightly-20091123-c9963.
- */
- private static final String VERSION_BUILD;
-
- /* Initialize version numbers from string replaced by build-script. */
- static {
- if ("@VERSION@".equals("@" + "VERSION" + "@")) {
- VERSION = "9.9.9.INTERNAL-DEBUG-BUILD";
- } else {
- VERSION = "@VERSION@";
- }
- final String[] digits = VERSION.split("\\.", 4);
- VERSION_MAJOR = Integer.parseInt(digits[0]);
- VERSION_MINOR = Integer.parseInt(digits[1]);
- VERSION_REVISION = Integer.parseInt(digits[2]);
- if (digits.length == 4) {
- VERSION_BUILD = digits[3];
- } else {
- VERSION_BUILD = "";
- }
- }
-
- public static String getFullVersion() {
- return VERSION;
- }
-
- public static int getMajorVersion() {
- return VERSION_MAJOR;
- }
-
- public static int getMinorVersion() {
- return VERSION_MINOR;
- }
-
- public static int getRevision() {
- return VERSION_REVISION;
- }
-
- public static String getBuildIdentifier() {
- return VERSION_BUILD;
- }
-
-}