From bc59f14ff30f7b43145ff23f0f2f7df076a8b3c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Vester?= Date: Tue, 29 Oct 2019 12:11:13 +0100 Subject: [PATCH] Fix path separator in the WsdlLocation part of the generated client. Previously it would use the default path separator, which on Windows is \ but should always be / instead. --- README.md | 2 +- build.gradle.kts | 5 +- .../nested/HelloWorldAbstractService.wsdl | 54 +++++++++++++++++ .../nested/HelloWorldNestedService.wsdl | 58 +++++++++++++++++++ .../bjornvester/wsdl2java/Wsdl2JavaTask.kt | 2 +- 5 files changed, 117 insertions(+), 4 deletions(-) create mode 100644 integration-test/src/main/resources/nested/HelloWorldAbstractService.wsdl create mode 100644 integration-test/src/main/resources/nested/HelloWorldNestedService.wsdl diff --git a/README.md b/README.md index 6ea9b74..d69ae8a 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Apply the plugin ID "com.github.bjornvester.wsdl2java" as specific in the [Gradl ```kotlin plugins { - id("com.github.bjornvester.wsdl2java") + id("com.github.bjornvester.wsdl2java") version "0.3" } ``` diff --git a/build.gradle.kts b/build.gradle.kts index 77b1444..6f56cfa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } group = "com.github.bjornvester" -version = "0.2" +version = "0.3" repositories { jcenter() @@ -37,7 +37,8 @@ pluginBundle { (plugins) { "wsdl2JavaPlugin" { displayName = "Gradle Wsdl2Java plugin" - description = "Changes: Support relocated project directories" + description = "Changes: \n" + + "- Fix path separator in the WsdlLocation for the generated client when building on Windows" tags = listOf("wsdl2java", "cxf", "wsimport") } } diff --git a/integration-test/src/main/resources/nested/HelloWorldAbstractService.wsdl b/integration-test/src/main/resources/nested/HelloWorldAbstractService.wsdl new file mode 100644 index 0000000..09d0475 --- /dev/null +++ b/integration-test/src/main/resources/nested/HelloWorldAbstractService.wsdl @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/integration-test/src/main/resources/nested/HelloWorldNestedService.wsdl b/integration-test/src/main/resources/nested/HelloWorldNestedService.wsdl new file mode 100644 index 0000000..bbcb0ab --- /dev/null +++ b/integration-test/src/main/resources/nested/HelloWorldNestedService.wsdl @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/kotlin/com/github/bjornvester/wsdl2java/Wsdl2JavaTask.kt b/src/main/kotlin/com/github/bjornvester/wsdl2java/Wsdl2JavaTask.kt index 0a9340f..1bc824a 100644 --- a/src/main/kotlin/com/github/bjornvester/wsdl2java/Wsdl2JavaTask.kt +++ b/src/main/kotlin/com/github/bjornvester/wsdl2java/Wsdl2JavaTask.kt @@ -57,7 +57,7 @@ open class Wsdl2JavaTask : DefaultTask() { val args = arrayOf( "-verbose", "-wsdlLocation", - wsdlFile.relativeTo(wsdlInputDir.asFile.get()).path, + wsdlFile.relativeTo(wsdlInputDir.asFile.get()).invariantSeparatorsPath, "-suppress-generated-date", "-autoNameResolution", "-d",