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

This commit is contained in:
Miriam Baglioni 2020-10-02 12:17:46 +02:00
parent 01117a46e1
commit 25cbcf6114
1 changed files with 2 additions and 2 deletions

View File

@ -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);