mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
Move context.complete() call to avoid closing passed in context
This commit is contained in:
@@ -212,6 +212,8 @@ public class StructBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
importStructure(context, inputStream, outputStream);
|
importStructure(context, inputStream, outputStream);
|
||||||
|
// save changes from import
|
||||||
|
context.complete();
|
||||||
}
|
}
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
@@ -304,8 +306,6 @@ public class StructBuilder {
|
|||||||
output, e.getMessage());
|
output, e.getMessage());
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
context.complete();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user