* added main method for post migration process.

This commit is contained in:
Heng Sin Low 2007-11-16 19:48:31 +00:00
parent 96813340f9
commit 7b36ea8f93
1 changed files with 15 additions and 0 deletions

View File

@ -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