Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a758d65

Browse files
committed
add version and git information when build
1 parent 08ae902 commit a758d65

File tree

3 files changed

+568
-1
lines changed

3 files changed

+568
-1
lines changed

boot/src/main/java/com/ricequant/rqboot/boot/RicequantMain.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ private static boolean reportVersion(String[] args) {
5959
if ("-v".equals(arg) || "--version".equals(arg)) {
6060

6161
System.out.println(RicequantMain.class.getPackage().getSpecificationVersion());
62+
VersionReporter.printVersionInfo();
6263

6364
return true;
6465
}
@@ -112,6 +113,7 @@ protected List<Class<IApplication>> findAppImplementation() {
112113

113114
@Override
114115
public void init(String[] args) {
116+
VersionReporter.printVersionInfo();
115117
System.out.println("Looking for implementation of IApplication...");
116118

117119
iApplication = getApplication();
@@ -122,7 +124,7 @@ public void init(String[] args) {
122124
if (iApplication == null) {
123125
List<Class<IApplication>> apps = findAppImplementation();
124126

125-
if (apps.size() == 0) {
127+
if (apps.isEmpty()) {
126128
throw new RuntimeException("Cannot find any application implementations to load");
127129
}
128130

0 commit comments

Comments
 (0)