Minor refactoring
This commit is contained in:
parent
59b65c370c
commit
36d7e38a93
|
@ -17,19 +17,12 @@
|
||||||
package org.adempiere.process;
|
package org.adempiere.process;
|
||||||
|
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.util.Properties;
|
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import org.compiere.Adempiere;
|
import org.compiere.Adempiere;
|
||||||
import org.compiere.model.MClient;
|
|
||||||
import org.compiere.model.MSequence;
|
|
||||||
import org.compiere.process.SvrProcess;
|
|
||||||
import org.compiere.util.CLogMgt;
|
import org.compiere.util.CLogMgt;
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
|
||||||
import org.compiere.util.Trx;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sign Database Build
|
* Sign Database Build
|
||||||
|
@ -51,13 +44,11 @@ public class SignDatabaseBuild
|
||||||
|
|
||||||
PreparedStatement updateStmt = null;
|
PreparedStatement updateStmt = null;
|
||||||
try {
|
try {
|
||||||
updateStmt = DB.prepareStatement(
|
String upd = "UPDATE AD_System SET LastBuildInfo = ?";
|
||||||
"UPDATE AD_System "
|
updateStmt = DB.prepareStatement(upd, null);
|
||||||
+ "SET LastBuildInfo = ? "
|
|
||||||
+ "WHERE AD_System_ID = 0",
|
|
||||||
null);
|
|
||||||
updateStmt.setString(1, Adempiere.getImplementationVersion());
|
updateStmt.setString(1, Adempiere.getImplementationVersion());
|
||||||
System.out.println(updateStmt);
|
s_log.info(upd);
|
||||||
|
System.out.println(upd); // Also show the update to the console
|
||||||
updateStmt.executeUpdate();
|
updateStmt.executeUpdate();
|
||||||
|
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
|
Loading…
Reference in New Issue