From e93a8c5efb8a64bd4a52606a2c4e6a593fd2968c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Pl=C3=A4hn?= Date: Fri, 22 Nov 2019 09:32:36 +0100 Subject: [PATCH] Bugfix for "bindingFiles property is not working" #5 --- src/main/kotlin/com/github/bjornvester/xjc/XjcTask.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/github/bjornvester/xjc/XjcTask.kt b/src/main/kotlin/com/github/bjornvester/xjc/XjcTask.kt index ed8f0d2..ade6759 100644 --- a/src/main/kotlin/com/github/bjornvester/xjc/XjcTask.kt +++ b/src/main/kotlin/com/github/bjornvester/xjc/XjcTask.kt @@ -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 = project.configurations @@ -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 = project.objects.listProperty(String::class.java).convention(getXjcExtension().options) @@ -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}")