summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorelmot <elmot@vaadin.com>2016-04-12 11:23:43 +0300
committerelmot <elmot@vaadin.com>2016-04-12 11:23:43 +0300
commit8144504e11502fbbe21ccd0140ed239092408f3b (patch)
treea9f25832b4c86c6010c58153f92a359ba249e8e9 /shared
parent1ad07dfa1e615cf37057ba368e92e284dd75671c (diff)
downloadvaadin-framework-8144504e11502fbbe21ccd0140ed239092408f3b.tar.gz
vaadin-framework-8144504e11502fbbe21ccd0140ed239092408f3b.zip
Fix version parser
Change-Id: Ice7fa5ff485188dff905d14862e1a78842c7482f
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java-templates/com/vaadin/shared/Version.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/src/main/java-templates/com/vaadin/shared/Version.java b/shared/src/main/java-templates/com/vaadin/shared/Version.java
index d401105ed0..dc781f33ed 100644
--- a/shared/src/main/java-templates/com/vaadin/shared/Version.java
+++ b/shared/src/main/java-templates/com/vaadin/shared/Version.java
@@ -52,7 +52,7 @@ public class Version implements Serializable {
} else {
VERSION = "${project.version}";
}
- final String[] digits = VERSION.split("\\.", 4);
+ final String[] digits = VERSION.split("[-.]", 4);
VERSION_MAJOR = Integer.parseInt(digits[0]);
VERSION_MINOR = Integer.parseInt(digits[1]);
VERSION_REVISION = Integer.parseInt(digits[2]);