}
private void renameFileInAppFolderToFinalName(FilePath moduleRoot, String suffix, PrintStream logger)
throws IOException, InterruptedException {
FilePath appFolder = this.getAppFolder(moduleRoot);
FilePath[] paths = appFolder.list("*." + suffix);
if (paths.length == 1) {
FilePath path = paths[0];
FilePath target = path.getParent().child(this.finalName + "." + suffix);
path.renameTo(target);
} else if (paths.length == 0) {