Skip to content

Commit 4ff77d0

Browse files
committed
Tweak test logging, update xalan dependency, set TransformerFactory
See #334
1 parent 462e675 commit 4ff77d0

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,12 @@ gradle.projectsEvaluated {
200200
task publish {
201201
dependsOn tasks.uploadArchives
202202
}
203+
204+
test {
205+
testLogging {
206+
exceptionFormat = 'full'
207+
}
208+
}
203209
}
204210
}
205211

metafacture-biblio/build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ dependencies {
2222
implementation project(':metafacture-commons')
2323
implementation project(':metafacture-flowcontrol')
2424
implementation 'org.dspace:oclc-harvester2:0.1.12'
25-
implementation ('xalan:xalan:2.7.0') {
26-
exclude group: 'xalan', module: 'serializer'
27-
exclude group: 'xercesImpl', module: 'xercesImpl'
28-
exclude group: 'xml-apis', module: 'xml-apis'
29-
}
25+
implementation 'xalan:xalan:2.7.2'
3026
implementation 'log4j:log4j:1.2.12'
3127
testImplementation 'junit:junit:4.12'
3228
testImplementation 'org.mockito:mockito-core:2.5.5'

metafacture-biblio/src/main/java/org/metafacture/biblio/OaiPmhOpener.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public final class OaiPmhOpener extends
5050
* Default constructor
5151
*/
5252
public OaiPmhOpener() {
53-
53+
// See https://github.com/metafacture/metafacture-core/issues/334
54+
System.setProperty("javax.xml.transform.TransformerFactory", "com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl");
5455
}
5556

5657
/**

0 commit comments

Comments
 (0)