2
0
Fork 0
mirror of https://github.com/ethauvin/bld.git synced 2025-04-25 00:07:12 -07:00

Updated core submodule. Use RIFE core method to read version number.

This commit is contained in:
Geert Bevin 2023-05-11 09:43:43 -04:00
parent ddf31fd1a5
commit cb59f12427
3 changed files with 3 additions and 25 deletions

2
core

@ -1 +1 @@
Subproject commit 6a4d8ad6af6fa97bb9314a80dd43b72ada2e991c
Subproject commit f420f0456ffa1e4d3dc061e0403e687a6fb86d40

Binary file not shown.

View file

@ -6,8 +6,6 @@ package rife.bld;
import rife.tools.FileUtils;
import java.io.IOException;
/**
* Singleton class that provides access to the current bld version as a string.
*
@ -15,30 +13,10 @@ import java.io.IOException;
* @since 1.7
*/
public class BldVersion {
private String version_;
private final String version_;
BldVersion() {
var resource = getClass().getClassLoader().getResource("BLD_VERSION");
try {
if (resource == null) {
version_ = null;
} else {
var connection = resource.openConnection();
connection.setUseCaches(false);
try (var input_stream = connection.getInputStream()) {
version_ = FileUtils.readString(input_stream);
}
}
} catch (IOException e) {
version_ = null;
}
if (version_ != null) {
version_ = version_.trim();
}
if (null == version_) {
version_ = "unknown version";
}
version_ = FileUtils.versionFromResource("BLD_VERSION");
}
private String getVersionString() {