Check DB.isConnected to execute the update

This commit is contained in:
Carlos Ruiz 2008-12-09 03:40:52 +00:00
parent 818898577f
commit 1237adb2fb
1 changed files with 6 additions and 1 deletions

View File

@ -35,13 +35,18 @@ public class SignDatabaseBuild
/** Static Logger */
private static CLogger s_log = CLogger.getCLogger (SignDatabaseBuild.class);
public static void main(String[] args)
public static void main(String[] args)
{
Adempiere.startupEnvironment(false);
CLogMgt.setLevel(Level.FINE);
s_log.info("Sign Database Build");
s_log.info("-------------------");
if (! DB.isConnected()) {
s_log.info("No DB Connection");
System.exit(1);
}
PreparedStatement updateStmt = null;
try {
String upd = "UPDATE AD_System SET LastBuildInfo = ?";