continue;
}
String id = repository.getRelatedId(spec.basePath);
OutputTransactionContext context = HadoopDataSourceUtil.createContext(jobContext, id);
try {
DirectDataSource repo = repository.getRelatedDataSource(spec.basePath);
String basePath = repository.getComponentPath(spec.basePath);
for (String pattern : spec.deletePatterns) {
FilePattern resources = FilePattern.compile(pattern);
if (LOG.isInfoEnabled()) {
LOG.info(MessageFormat.format(
"Deleting output: datasource={0}, basePath={1}, pattern={2}",
id,
basePath,
pattern));
}
boolean succeed = repo.delete(basePath, resources, true, context.getCounter());
if (LOG.isDebugEnabled()) {
LOG.debug(MessageFormat.format(
"Deleted output (succeed={3}): datasource={0}, basePath={1}, pattern={2}",
id,
basePath,