More logging on nightly build scripts

This commit is contained in:
Carlos Ruiz 2008-02-06 01:43:57 +00:00
parent 58a3dfbd0a
commit f9c0eaed7d
3 changed files with 16 additions and 3 deletions

View File

@ -21,6 +21,7 @@ import java.sql.*;
import org.compiere.Adempiere; import org.compiere.Adempiere;
import org.compiere.model.*; import org.compiere.model.*;
import java.util.logging.*; import java.util.logging.*;
import org.compiere.util.*; import org.compiere.util.*;
/** /**
@ -31,6 +32,9 @@ import org.compiere.util.*;
*/ */
public class RoleAccessUpdate extends SvrProcess public class RoleAccessUpdate extends SvrProcess
{ {
/** Static Logger */
private static CLogger s_log = CLogger.getCLogger (RoleAccessUpdate.class);
/** Update Role */ /** Update Role */
private int p_AD_Role_ID = 0; private int p_AD_Role_ID = 0;
/** Update Roles of Client */ /** Update Roles of Client */
@ -120,7 +124,10 @@ public class RoleAccessUpdate extends SvrProcess
//add main method, preparing for nightly build //add main method, preparing for nightly build
public static void main(String[] args) public static void main(String[] args)
{ {
Adempiere.startupEnvironment(false); Adempiere.startupEnvironment(true);
CLogMgt.setLevel(Level.FINE);
s_log.info("Role Access Update");
s_log.info("------------------");
ProcessInfo pi = new ProcessInfo("Role Access Update", 295); ProcessInfo pi = new ProcessInfo("Role Access Update", 295);
pi.setAD_Client_ID(0); pi.setAD_Client_ID(0);
pi.setAD_User_ID(100); pi.setAD_User_ID(100);

View File

@ -296,7 +296,7 @@ public class SequenceCheck extends SvrProcess
public static void main(String[] args) public static void main(String[] args)
{ {
Adempiere.startupEnvironment(true); Adempiere.startupEnvironment(true);
CLogMgt.setLevel(Level.FINEST); CLogMgt.setLevel(Level.FINE);
s_log.info("Sequence Check"); s_log.info("Sequence Check");
s_log.info("--------------"); s_log.info("--------------");
ProcessInfo pi = new ProcessInfo("Sequence Check", 258); ProcessInfo pi = new ProcessInfo("Sequence Check", 258);

View File

@ -27,6 +27,9 @@ import org.compiere.util.*;
*/ */
public class SynchronizeTerminology extends SvrProcess public class SynchronizeTerminology extends SvrProcess
{ {
/** Static Logger */
private static CLogger s_log = CLogger.getCLogger (SynchronizeTerminology.class);
/** /**
* Prepare - e.g., get Parameters. * Prepare - e.g., get Parameters.
*/ */
@ -759,7 +762,10 @@ public class SynchronizeTerminology extends SvrProcess
//add main method, preparing for nightly build //add main method, preparing for nightly build
public static void main(String[] args) public static void main(String[] args)
{ {
Adempiere.startupEnvironment(false); Adempiere.startupEnvironment(true);
CLogMgt.setLevel(Level.FINE);
s_log.info("Synchronize Terminology");
s_log.info("-----------------------");
ProcessInfo pi = new ProcessInfo("Synchronize Terminology", 172); ProcessInfo pi = new ProcessInfo("Synchronize Terminology", 172);
pi.setAD_Client_ID(0); pi.setAD_Client_ID(0);
pi.setAD_User_ID(100); pi.setAD_User_ID(100);