ATS-191 : Cleanup source temp files from T-Engines after SFS upload

This commit is contained in:
Cezar.Leahu 2018-11-12 12:23:49 +02:00
parent 0165613ed1
commit fb25362e08

View File

@ -221,6 +221,14 @@ public abstract class AbstractTransformerController implements TransformControll
{
logger.error("Failed to delete target local temp file " + targetFile, e);
}
try
{
deleteFile(sourceFile);
}
catch (Exception e)
{
logger.error("Failed to delete source local temp file " + sourceFile, e);
}
reply.setTargetReference(targetRef.getEntry().getFileRef());
reply.setStatus(HttpStatus.CREATED.value());