private File taskExecutor(File inputFile, File errorFile) throws IOException, ActionException {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("--------------------- TaskExecutor - rasterization ----------------");
}
final TaskExecutorConfiguration teConfig = new TaskExecutorConfiguration("gdal_rasterize_id", "UNREDD_rasterize", "gdal_rasterize");
// final EventObject ev;
// ev = (EventObject) queue.peek();
// String filename = ev.getSource().toString();
if(LOGGER.isDebugEnabled())
LOGGER.debug("Input file: " + inputFile);
teConfig.setDefaultScript(inputFile.getAbsolutePath());
teConfig.setErrorFile(errorFile.getAbsolutePath());
teConfig.setExecutable(rasterizeConfig.getExecutable());
if(LOGGER.isDebugEnabled())
LOGGER.debug("gdal_rasterize executable file: " + rasterizeConfig.getExecutable());
teConfig.setFailIgnored(false);
// teConfig.setOutput(getOutput());
// teConfig.setOutputName(getOutputName());
// teConfig.setServiceID(getServiceID());
teConfig.setTimeOut(120000l);
// teConfig.setVariables(getVariables());
teConfig.setConfigDir(configDir);
teConfig.setXsl(rasterizeConfig.getTaskExecutorXslFileName());
TaskExecutor tea = new TaskExecutor(teConfig);
// tea.setRunningContext(tempDir.getAbsolutePath());
tea.setTempDir(tempDir);
tea.setConfigDir(configDir);