forked from adempiere/backend
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add log warning with version file. (#946)
- Loading branch information
1 parent
404b7f3
commit 5b23f17
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,13 +21,17 @@ | |
import java.text.SimpleDateFormat; | ||
import java.util.Properties; | ||
|
||
import org.compiere.util.CLogger; | ||
|
||
/** | ||
* @author Edwin Betancourt, [email protected], https://github.com/EdwinBetanc0urt | ||
* Service for backend of Version | ||
*/ | ||
public final class Version | ||
{ | ||
|
||
private static CLogger log = CLogger.getCLogger(Version.class); | ||
|
||
/** Main Version String */ | ||
// Conventions for naming second number is even for stable, and odd for unstable | ||
// the releases will have a suffix (a) for alpha - (b) for beta - (t) for trunk - (s) for stable - and (LTS) for long term support | ||
|
@@ -60,6 +64,8 @@ public final class Version | |
IMPLEMENTATION_VERSION = properties.getProperty("IMPLEMENTATION_VERSION"); | ||
} | ||
} catch (IOException e) { | ||
// file does not exists | ||
log.warning("File version.properties does no exists"); | ||
} | ||
} | ||
} | ||
|