set maven repos
This commit is contained in:
parent
5ed7a065d7
commit
4608e89029
2 changed files with 7 additions and 3 deletions
4
gradle/repositories/maven.gradle
Normal file
4
gradle/repositories/maven.gradle
Normal file
|
@ -0,0 +1,4 @@
|
|||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
}
|
|
@ -23,15 +23,15 @@ public class UnimarcTest {
|
|||
@Test
|
||||
public void testPerioUni() throws Exception {
|
||||
String s = "periouni.mrc";
|
||||
InputStream in = getClass().getResource(s).openStream();
|
||||
File file = File.createTempFile("periouni.", ".xml");
|
||||
file.deleteOnExit();
|
||||
FileOutputStream out = new FileOutputStream(file);
|
||||
try (MarcXchangeWriter writer = new MarcXchangeWriter(out, true)
|
||||
.setFormat("UNIMARC")
|
||||
.setType("Bibliographic")) {
|
||||
.setType("Bibliographic");
|
||||
InputStream inputStream = getClass().getResource(s).openStream()) {
|
||||
Marc.builder()
|
||||
.setInputStream(in)
|
||||
.setInputStream(inputStream)
|
||||
.setCharset(StandardCharsets.UTF_8)
|
||||
.setMarcListener(writer)
|
||||
.build()
|
||||
|
|
Loading…
Reference in a new issue