Added logging of archive file size

This commit is contained in:
Erik C. Thauvin 2023-10-30 21:36:09 -07:00
parent 58a2245840
commit 677994bb67
3 changed files with 35 additions and 14 deletions

View file

@ -57,7 +57,8 @@ public class BootWarOperation extends AbstractBootOperation<BootWarOperation> {
var archive = executeCreateArchive(staging_dir);
if (!silent() && LOGGER.isLoggable(Level.INFO)) {
LOGGER.info("The executable WAR was created: " + archive.getAbsolutePath());
LOGGER.info(String.format("The executable WAR was created: %s (%s)", archive.getAbsolutePath(),
fileSize(archive)));
}
} finally {
FileUtils.deleteDirectory(staging_dir);