提交 b2550455 编写于 作者: R Rob Winch

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
上级 f7c0795c
......@@ -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/**/*")
}
}
}
}
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册