Skip to content

Commit

Permalink
Creation of id-groupid.csv required for validation #253
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly committed May 4, 2023
1 parent d74ce95 commit b7080b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/de/gwdg/metadataqa/marc/cli/QACli.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.gwdg.metadataqa.marc.CsvUtils;
import de.gwdg.metadataqa.marc.Utils;
import de.gwdg.metadataqa.marc.cli.parameters.CommonParameters;
import de.gwdg.metadataqa.marc.dao.record.BibliographicRecord;
import de.gwdg.metadataqa.marc.utils.BibiographicPath;
import de.gwdg.metadataqa.marc.utils.pica.path.PicaPath;
import de.gwdg.metadataqa.marc.utils.pica.path.PicaPathParser;
import org.apache.avro.generic.GenericData;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;

Expand Down Expand Up @@ -99,9 +97,9 @@ protected boolean isJarNewerThan(String outputDir, String fileName) {
File reportFile = new File(outputDir, fileName);
if (!reportFile.exists())
return true;
if (reportFile.isFile()) {
else {
FileTime groupModifiedTime = Files.readAttributes(reportFile.toPath(), BasicFileAttributes.class).lastModifiedTime();
return (jarModifiedTime == null || jarModifiedTime.compareTo(groupModifiedTime) == 1);
return (jarModifiedTime == null || jarModifiedTime.compareTo(groupModifiedTime) > 0);
}
} catch (IOException e) {
logger.severe("Error during prepareReportFile: " + e);
Expand Down

0 comments on commit b7080b3

Please sign in to comment.