Improved Builder clear action.

This commit is contained in:
Christian P. MOMON 2020-10-17 17:56:56 +02:00
parent cb2195d058
commit 2a8f053901

View file

@ -130,16 +130,13 @@ public class Builder
} }
else else
{ {
File buildDirectory = configuration.getBuildDirectory(); File file = new File(configuration.getBuildDirectory(), configuration.getBuildInput().getName());
for (File file : buildDirectory.listFiles())
{
if ((file.isFile()) && (StringUtils.endsWithAny(file.getName(), ".properties"))) if ((file.isFile()) && (StringUtils.endsWithAny(file.getName(), ".properties")))
{ {
logger.info("Deleting " + file.getName()); logger.info("BUILDER : Deleting {}", file.getAbsolutePath());
file.delete(); file.delete();
} }
} }
} }
} }
}