* added main method - preparing for nightly build.

This commit is contained in:
Heng Sin Low 2007-10-29 01:17:03 +00:00
parent 3d65b519e5
commit c34c2c0949
2 changed files with 28 additions and 13 deletions

View File

@ -20,6 +20,7 @@ import java.sql.*;
import java.util.*; import java.util.*;
import java.util.logging.*; import java.util.logging.*;
import org.compiere.Adempiere;
import org.compiere.model.*; import org.compiere.model.*;
import org.compiere.util.*; import org.compiere.util.*;
@ -291,4 +292,17 @@ public class SequenceCheck extends SvrProcess
} // checkClientSequences } // 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 } // SequenceCheck

View File

@ -16,6 +16,7 @@ package org.compiere.process;
import java.sql.*; import java.sql.*;
import java.util.logging.*; import java.util.logging.*;
import org.compiere.Adempiere;
import org.compiere.model.*; import org.compiere.model.*;
import org.compiere.util.*; import org.compiere.util.*;
@ -26,24 +27,11 @@ import org.compiere.util.*;
*/ */
public class SynchronizeTerminology extends SvrProcess public class SynchronizeTerminology extends SvrProcess
{ {
/** The Column */
private int p_AD_Column_ID = 0;
/** /**
* Prepare - e.g., get Parameters. * Prepare - e.g., get Parameters.
*/ */
protected void prepare() 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 } // prepare
/** /**
@ -768,4 +756,17 @@ public class SynchronizeTerminology extends SvrProcess
return "@OK@"; return "@OK@";
} // doIt } // 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 } // ColumnSync