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

Bugfix for "bindingFiles property is not working" #5 #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/main/kotlin/com/github/bjornvester/xjc/XjcTask.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ open class XjcTask @Inject constructor(private val workerExecutor: WorkerExecuto
@Optional
@get:InputFiles
@get:PathSensitive(PathSensitivity.RELATIVE)
val xsdFiles = getXjcExtension().xsdFiles
var xsdFiles = getXjcExtension().xsdFiles

@get:Classpath
val xjcConfiguration: NamedDomainObjectProvider<Configuration> = project.configurations
Expand All @@ -48,7 +48,7 @@ open class XjcTask @Inject constructor(private val workerExecutor: WorkerExecuto
@Optional
@get:InputFiles
@get:PathSensitive(PathSensitivity.RELATIVE)
val bindingFiles = getXjcExtension().bindingFiles
var bindingFiles = getXjcExtension().bindingFiles

@get:Input
val options: ListProperty<String> = project.objects.listProperty(String::class.java).convention(getXjcExtension().options)
Expand Down Expand Up @@ -80,6 +80,9 @@ open class XjcTask @Inject constructor(private val workerExecutor: WorkerExecuto
project.mkdir(outputJavaDir)
project.mkdir(outputResourcesDir)

xsdFiles = getXjcExtension().xsdFiles
bindingFiles = getXjcExtension().bindingFiles

validateOptions()

logger.info("Loading XSD files ${xsdFiles.files}")
Expand Down