* added main method for post migration process.
This commit is contained in:
parent
96813340f9
commit
7b36ea8f93
|
@ -18,6 +18,7 @@ package org.compiere.process;
|
|||
|
||||
import java.sql.*;
|
||||
|
||||
import org.compiere.Adempiere;
|
||||
import org.compiere.model.*;
|
||||
import java.util.logging.*;
|
||||
import org.compiere.util.*;
|
||||
|
@ -116,4 +117,18 @@ public class RoleAccessUpdate extends SvrProcess
|
|||
+ role.updateAccessRecords());
|
||||
} // updateRole
|
||||
|
||||
//add main method, preparing for nightly build
|
||||
public static void main(String[] args)
|
||||
{
|
||||
Adempiere.startupEnvironment(false);
|
||||
ProcessInfo pi = new ProcessInfo("Role Access Update", 295);
|
||||
pi.setAD_Client_ID(0);
|
||||
pi.setAD_User_ID(100);
|
||||
|
||||
RoleAccessUpdate rau = new RoleAccessUpdate();
|
||||
rau.startProcess(Env.getCtx(), pi, null);
|
||||
|
||||
System.out.println("Process=" + pi.getTitle() + " Error="+pi.isError() + " Summary=" + pi.getSummary());
|
||||
}
|
||||
|
||||
} // RoleAccessUpdate
|
||||
|
|
Loading…
Reference in New Issue