if (log.isDebugEnabled()) {
log.debug("Failed to generate sha256 for [" + file + "]");
}
}
String version = getVersion(file, sha256);
PackageDetailsKey detailsKey = new PackageDetailsKey(shortName, version, typeName, "noarch");
ResourcePackageDetails detail = new ResourcePackageDetails(detailsKey);
detail.setDisplayName(shortName);
detail.setFileCreatedDate(file.lastModified());
detail.setFileName(shortName);
detail.setFileSize(file.length());