Enable Jibx binding with TestGroup.CUSTOM_COMPILATION
Previously the Jibx binding was commented out which caused failures when using the TestGroup.CUSTOM_COMPILATION Now the Jibx bindings are enabled when the CUSTOM_COMPILATION is enabled. Issue: SPR-10558
This commit is contained in:
parent
f7c0795c1a
commit
b255045541
|
|
@ -112,20 +112,23 @@ task genXmlbeans {
|
||||||
|
|
||||||
// add jibx binding to the normal test compilation process
|
// add jibx binding to the normal test compilation process
|
||||||
// INCOMPATIBLE WITH OPENJDK 8 b89+
|
// INCOMPATIBLE WITH OPENJDK 8 b89+
|
||||||
// compileTestJava {
|
def jibxEnabled = project.properties.get("testGroups")?.toLowerCase()?.split(",")?.contains("custom_compilation")
|
||||||
// def bindingXml = "${projectDir}/src/test/resources/org/springframework/oxm/jibx/binding.xml"
|
if(jibxEnabled) {
|
||||||
//
|
compileTestJava {
|
||||||
// doLast() {
|
def bindingXml = "${projectDir}/src/test/resources/org/springframework/oxm/jibx/binding.xml"
|
||||||
// project.ant {
|
|
||||||
// taskdef(name: "jibx",
|
doLast() {
|
||||||
// classname: "org.jibx.binding.ant.CompileTask",
|
project.ant {
|
||||||
// classpath: configurations.jibx.asPath)
|
taskdef(name: "jibx",
|
||||||
//
|
classname: "org.jibx.binding.ant.CompileTask",
|
||||||
// jibx(verbose: true, load: true, binding: bindingXml) {
|
classpath: configurations.jibx.asPath)
|
||||||
// classpathset(dir: sourceSets.test.output.classesDir) {
|
|
||||||
// include(name: "**/jibx/**/*")
|
jibx(verbose: true, load: true, binding: bindingXml) {
|
||||||
// }
|
classpathset(dir: sourceSets.test.output.classesDir) {
|
||||||
// }
|
include(name: "**/jibx/**/*")
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue