Improved Builder clear action.
This commit is contained in:
parent
cb2195d058
commit
2a8f053901
1 changed files with 4 additions and 7 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue