From 25cbcf61141401ff7771b810374ed476a3380ed5 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Fri, 2 Oct 2020 12:17:46 +0200 Subject: [PATCH] changed to solve issues about names. context renamed communities_infrastructure.json and removed the double json.gz extention to the name of the part in the tar --- .../src/main/java/eu/dnetlib/dhp/oa/graph/dump/MakeTar.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/MakeTar.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/MakeTar.java index cfba7bd10..b1064ed7b 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/MakeTar.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/MakeTar.java @@ -88,10 +88,10 @@ public class MakeTar implements Serializable { String p_string = p.toString(); if (!p_string.endsWith("_SUCCESS")) { String name = p_string.substring(p_string.lastIndexOf("/") + 1); - if(! name.trim().equalsIgnoreCase("context")){ + if (name.trim().equalsIgnoreCase("context")) { name = "communities_infrastructures.json"; } - TarArchiveEntry entry = new TarArchiveEntry(dir_name + "/" + name ); + TarArchiveEntry entry = new TarArchiveEntry(dir_name + "/" + name); entry.setSize(fileStatus.getLen()); ar.putArchiveEntry(entry);