19package denoptim.logging;
21import java.io.IOException;
22import java.util.Properties;
24import denoptim.constants.DENOPTIMConstants;
25import denoptim.main.Main;
37 public static final String
NAME =
"DENOPTIM";
38 public static final String
AUTHORS =
"Vishwesh Venkatraman, Marco Foscato";
41 +
"Marcello Costamagna";
42 public static final String
CONTACT =
"see https://github.com/denoptim-project";
50 final Properties properties =
new Properties();
51 String tmpVersion =
"VersionNotFound";
54 properties.load(
Main.class.getClassLoader().getResourceAsStream(
55 "project.properties"));
56 tmpVersion = properties.getProperty(
"version");
57 }
catch (IOException e)
67 public static final String
DATE;
69 final Properties properties =
new Properties();
70 String tmpVersion =
"BuildDateNotFound";
73 properties.load(
Main.class.getClassLoader().getResourceAsStream(
74 "project.properties"));
75 tmpVersion = properties.getProperty(
"build_date");
76 }
catch (IOException e)
91 Properties p = System.getProperties();
92 String javaVersion = p.getProperty(
"java.version");
93 String javaVM = p.getProperty(
"java.vm.name");
94 String javaVMVersion = p.getProperty(
"java.vm.version");
96 javaVersion = javaVersion +
" / " + javaVM;
97 if (javaVM !=
null && javaVMVersion !=
null)
98 javaVersion = javaVersion +
"-" + javaVMVersion;
101 return NL +
"| " +
NAME +
102 NL +
"| DENovo OPTimization of In/organic Molecules (" +
VERSION +
")" +
106 NL +
"| Date: " +
DATE +
107 NL +
"| Current Java: " + javaVersion +
General set of constants used in DENOPTIM.
static final String EOL
new line character
Class handling DENOPTIM's version identifier for headers.
static final String DATE
Build date (from Maven properties)
static String buildDenoptimHeader()
Builds the header with version, authors, contributors, and.
static final String CONTRIBUTORS
static final String AUTHORS
static final String CONTACT
static final String MINIMUMJAVAVERSION
static final String VERSION
Version identifier (from pom.xml via Maven properties)
Entry point of any kind of run of the DENOPTIM program.