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
|
||||
// INCOMPATIBLE WITH OPENJDK 8 b89+
|
||||
// compileTestJava {
|
||||
// def bindingXml = "${projectDir}/src/test/resources/org/springframework/oxm/jibx/binding.xml"
|
||||
//
|
||||
// doLast() {
|
||||
// project.ant {
|
||||
// taskdef(name: "jibx",
|
||||
// classname: "org.jibx.binding.ant.CompileTask",
|
||||
// classpath: configurations.jibx.asPath)
|
||||
//
|
||||
// jibx(verbose: true, load: true, binding: bindingXml) {
|
||||
// classpathset(dir: sourceSets.test.output.classesDir) {
|
||||
// include(name: "**/jibx/**/*")
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
def jibxEnabled = project.properties.get("testGroups")?.toLowerCase()?.split(",")?.contains("custom_compilation")
|
||||
if(jibxEnabled) {
|
||||
compileTestJava {
|
||||
def bindingXml = "${projectDir}/src/test/resources/org/springframework/oxm/jibx/binding.xml"
|
||||
|
||||
doLast() {
|
||||
project.ant {
|
||||
taskdef(name: "jibx",
|
||||
classname: "org.jibx.binding.ant.CompileTask",
|
||||
classpath: configurations.jibx.asPath)
|
||||
|
||||
jibx(verbose: true, load: true, binding: bindingXml) {
|
||||
classpathset(dir: sourceSets.test.output.classesDir) {
|
||||
include(name: "**/jibx/**/*")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue