Skip to content

How to use extraargs and bindingFiles? #37

Answered by ciscoo
mohamead asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can use the xjcArgs list property.

https://ciscoo.github.io/cxf-codegen-gradle/docs/current/api/io/mateo/cxf/codegen/wsdl2java/Wsdl2JavaOptions.html#getXjcArgs()

Based on your Maven configuration, something like:

dependencies {
	cxfCodegen("org.apache.cxf.xjcplugins:cxf-xjc-ts:3.3.1")
	cxfCodegen("org.jvnet.jaxb2_commons:jaxb2-basics:0.12.0")
}

tasks.withType(Wsdl2Java::class).configureEach {
	toolOptions {
		extraArgs.add("-impl")
		xjcArgs.add("-xjc-Xtsl")
		xjcArgs.add("-xjc-Xequals")
		bindingFiles.add(layout.projectDirectory.file("/src/main/resources/bindings/global.xml").asFile.absolutePath)
		bindingFiles.add(layout.projectDirectory.file("/src/main/resources/bindings/bim/…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ciscoo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #36 on June 20, 2022 16:56.