diff options
author | elmot <elmot@vaadin.com> | 2016-04-12 11:23:43 +0300 |
---|---|---|
committer | elmot <elmot@vaadin.com> | 2016-04-12 11:23:43 +0300 |
commit | 8144504e11502fbbe21ccd0140ed239092408f3b (patch) | |
tree | a9f25832b4c86c6010c58153f92a359ba249e8e9 /shared | |
parent | 1ad07dfa1e615cf37057ba368e92e284dd75671c (diff) | |
download | vaadin-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.java | 2 |
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]); |