Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bindingFiles property is not working #5

Open
felixsemmler opened this issue Oct 15, 2019 · 1 comment
Open

bindingFiles property is not working #5

felixsemmler opened this issue Oct 15, 2019 · 1 comment

Comments

@felixsemmler
Copy link

bindingFiles property is always empty in https://github.com/bjornvester/xjc-gradle-plugin/blob/master/src/main/kotlin/com/github/bjornvester/xjc/XjcTask.kt

Example configuration:
xjc { xsdDir = file("${projectDir}/src/main/resources/") bindingFiles = files("${projectDir}/src/main/resources/my-bindings.xjb") }

I fixed this locally by setting the bindingFiles property again in fun doCodeGeneration():
bindingFiles = getXjcExtension().bindingFiles
Also changed class member bindingFiles from val to var for my test.

@TweetyHH
Copy link

I think it's a Problem with all FileCollections.
We can't set the xsdFiles parameter. If we set only one xsd file here, it uses all xsd files (the default value).

Example:
xjc { xsdFiles = (project.files(xsdDir.file("/xsd/abc/def.xsd")) }

We use Gradle 5.6.2 with Java 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants