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,15 +130,12 @@ public class Builder
}
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());
file.delete();
}
logger.info("BUILDER : Deleting {}", file.getAbsolutePath());
file.delete();
}
}
}