* added main method - preparing for nightly build.
This commit is contained in:
parent
3d65b519e5
commit
c34c2c0949
|
@ -20,6 +20,7 @@ import java.sql.*;
|
|||
import java.util.*;
|
||||
import java.util.logging.*;
|
||||
|
||||
import org.compiere.Adempiere;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.util.*;
|
||||
|
||||
|
@ -291,4 +292,17 @@ public class SequenceCheck extends SvrProcess
|
|||
|
||||
} // checkClientSequences
|
||||
|
||||
//add main method, preparing for nightly build
|
||||
public static void main(String[] args)
|
||||
{
|
||||
Adempiere.startup(false);
|
||||
ProcessInfo pi = new ProcessInfo("Sequence Check", 258);
|
||||
pi.setAD_Client_ID(0);
|
||||
pi.setAD_User_ID(100);
|
||||
|
||||
SequenceCheck sc = new SequenceCheck();
|
||||
sc.startProcess(Env.getCtx(), pi, null);
|
||||
|
||||
System.out.println("Process=" + pi.getTitle() + " Error="+pi.isError() + " Summary=" + pi.getSummary());
|
||||
}
|
||||
} // SequenceCheck
|
||||
|
|
|
@ -16,6 +16,7 @@ package org.compiere.process;
|
|||
import java.sql.*;
|
||||
import java.util.logging.*;
|
||||
|
||||
import org.compiere.Adempiere;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.util.*;
|
||||
|
||||
|
@ -26,24 +27,11 @@ import org.compiere.util.*;
|
|||
*/
|
||||
public class SynchronizeTerminology extends SvrProcess
|
||||
{
|
||||
/** The Column */
|
||||
private int p_AD_Column_ID = 0;
|
||||
|
||||
/**
|
||||
* Prepare - e.g., get Parameters.
|
||||
*/
|
||||
protected void prepare()
|
||||
{
|
||||
ProcessInfoParameter[] para = getParameter();
|
||||
for (int i = 0; i < para.length; i++)
|
||||
{
|
||||
String name = para[i].getParameterName();
|
||||
if (para[i].getParameter() == null)
|
||||
;
|
||||
else
|
||||
log.log(Level.SEVERE, "Unknown Parameter: " + name);
|
||||
}
|
||||
p_AD_Column_ID = getRecord_ID();
|
||||
} // prepare
|
||||
|
||||
/**
|
||||
|
@ -768,4 +756,17 @@ public class SynchronizeTerminology extends SvrProcess
|
|||
return "@OK@";
|
||||
} // doIt
|
||||
|
||||
//add main method, preparing for nightly build
|
||||
public static void main(String[] args)
|
||||
{
|
||||
Adempiere.startup(false);
|
||||
ProcessInfo pi = new ProcessInfo("Synchronize Terminology", 172);
|
||||
pi.setAD_Client_ID(0);
|
||||
pi.setAD_User_ID(100);
|
||||
|
||||
SynchronizeTerminology sc = new SynchronizeTerminology();
|
||||
sc.startProcess(Env.getCtx(), pi, null);
|
||||
|
||||
System.out.println("Process=" + pi.getTitle() + " Error="+pi.isError() + " Summary=" + pi.getSummary());
|
||||
}
|
||||
} // ColumnSync
|
||||
|
|
Loading…
Reference in New Issue