[Schmitzm-commits] r2130 - trunk/schmitzm-core/src/main/java/de/schmitzm/versionnumber
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Fri Nov 9 15:54:05 CET 2012
Author: mojays
Date: 2012-11-09 15:54:05 +0100 (Fri, 09 Nov 2012)
New Revision: 2130
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/versionnumber/ReleaseControl.java
Log:
ReleaseControl: BugFix
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/versionnumber/ReleaseControl.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/versionnumber/ReleaseControl.java 2012-11-09 14:44:18 UTC (rev 2129)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/versionnumber/ReleaseControl.java 2012-11-09 14:54:05 UTC (rev 2130)
@@ -250,6 +250,9 @@
*/
public void updateRequiredVersionInDatabase(Connection conn) throws SQLException {
String reqVersion = getApplicationReleaseNumber();
+ if ( StringUtils.isBlank(reqVersion) ||
+ "0".equals(reqVersion.trim()) )
+ throw new SQLException("Currently a local application build is running (build number '0'). This version should not be stored in database!");
updateRequiredVersionInDatabase(conn, reqVersion);
}
More information about the Schmitzm-commits
mailing list