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
|
@Test
|
||||||
public void testPerioUni() throws Exception {
|
public void testPerioUni() throws Exception {
|
||||||
String s = "periouni.mrc";
|
String s = "periouni.mrc";
|
||||||
InputStream in = getClass().getResource(s).openStream();
|
|
||||||
File file = File.createTempFile("periouni.", ".xml");
|
File file = File.createTempFile("periouni.", ".xml");
|
||||||
file.deleteOnExit();
|
file.deleteOnExit();
|
||||||
FileOutputStream out = new FileOutputStream(file);
|
FileOutputStream out = new FileOutputStream(file);
|
||||||
try (MarcXchangeWriter writer = new MarcXchangeWriter(out, true)
|
try (MarcXchangeWriter writer = new MarcXchangeWriter(out, true)
|
||||||
.setFormat("UNIMARC")
|
.setFormat("UNIMARC")
|
||||||
.setType("Bibliographic")) {
|
.setType("Bibliographic");
|
||||||
|
InputStream inputStream = getClass().getResource(s).openStream()) {
|
||||||
Marc.builder()
|
Marc.builder()
|
||||||
.setInputStream(in)
|
.setInputStream(inputStream)
|
||||||
.setCharset(StandardCharsets.UTF_8)
|
.setCharset(StandardCharsets.UTF_8)
|
||||||
.setMarcListener(writer)
|
.setMarcListener(writer)
|
||||||
.build()
|
.build()
|
||||||
|
|
Loading…
Reference in a new issue