1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-10 20:22:26 +00:00
plantuml/src/net/sourceforge/plantuml/version/Version.java

68 lines
1.8 KiB
Java
Raw Normal View History

2010-11-15 20:35:36 +00:00
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
2015-04-07 18:18:37 +00:00
* (C) Copyright 2009-2014, Arnaud Roques
2010-11-15 20:35:36 +00:00
*
* Project Info: http://plantuml.sourceforge.net
*
* This file is part of PlantUML.
*
* PlantUML is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PlantUML distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
2013-12-10 19:36:50 +00:00
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
2010-11-15 20:35:36 +00:00
* License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*
* [Java is a trademark or registered trademark of Sun Microsystems, Inc.
* in the United States and other countries.]
*
* Original Author: Arnaud Roques
*
2015-04-20 19:45:13 +00:00
* Revision $Revision: 15915 $
2010-11-15 20:35:36 +00:00
*
*/
package net.sourceforge.plantuml.version;
2015-04-07 18:18:37 +00:00
import java.util.Date;
2010-11-15 20:35:36 +00:00
public class Version {
public static int version() {
2015-04-20 19:45:13 +00:00
return 8023;
2013-12-10 19:36:50 +00:00
}
public static String versionString() {
2015-04-07 18:18:37 +00:00
if (beta() != 0) {
return "" + (version() + 1) + "beta" + beta();
2013-12-10 19:36:50 +00:00
}
return "" + version();
}
2015-04-07 18:18:37 +00:00
private static int beta() {
final int beta = 0;
return beta;
}
private static long compileTime() {
2015-04-20 19:45:13 +00:00
return 1429551104146L;
2010-11-15 20:35:36 +00:00
}
2015-04-07 18:18:37 +00:00
public static String compileTimeString() {
if (beta() != 0) {
return versionString();
}
return new Date(Version.compileTime()).toString();
2010-11-15 20:35:36 +00:00
}
}