|
|
|
|
@ -7,6 +7,7 @@ configurations {
@@ -7,6 +7,7 @@ configurations {
|
|
|
|
|
dependencies { |
|
|
|
|
castor "org.codehaus.castor:castor-anttasks:1.4.1" |
|
|
|
|
jibx "org.jibx:jibx-bind:1.2.6" |
|
|
|
|
jibx "org.apache.bcel:bcel:6.0" |
|
|
|
|
xjc "com.sun.xml.bind:jaxb-xjc:2.1.17" |
|
|
|
|
xmlbeans "org.apache.xmlbeans:xmlbeans:2.6.0" |
|
|
|
|
} |
|
|
|
|
@ -108,23 +109,18 @@ task genXmlbeans {
@@ -108,23 +109,18 @@ task genXmlbeans {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// add jibx binding to the normal test compilation process |
|
|
|
|
// INCOMPATIBLE WITH OPENJDK 8 b89+ |
|
|
|
|
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/**/*") |
|
|
|
|
} |
|
|
|
|
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/**/*") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|