tgtools.tasklibrary.tasks.AnalysisSomeFileTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tgtools.tasklibrary Show documentation
Show all versions of tgtools.tasklibrary Show documentation
base tgtools.tasklibrary task tools
package tgtools.tasklibrary.tasks;
import tgtools.tasklibrary.entity.TableInfo;
import tgtools.tasklibrary.util.LogHelper;
import tgtools.tasks.TaskContext;
import java.util.List;
/**
* 解析多个E文件
*/
public class AnalysisSomeFileTask extends AnalysisOneFileTask {
/**
* 解析一个文件,解析完成后移动到指定目录
*
* @param p_File
* @param p_BackDir
* @param p_Table
*/
public AnalysisSomeFileTask(String p_File, String p_BackDir, TableInfo p_Table) {
super(p_File, p_BackDir, p_Table);
}
public AnalysisSomeFileTask(String p_File, String p_BackDir, List p_Table) {
super(p_File, p_BackDir, null);
m_Tables=p_Table;
}
protected List m_Tables;
@Override
public void run(TaskContext p_Param) {
LogHelper.info("AnalysisSomeFileTask 开始:" + m_File);
try {
if(null==m_Tables) {
return ;
}
for(int i=0;i