jochenseeber / gradle-wsimport-plugin Goto Github PK
View Code? Open in Web Editor NEWRun wsimport on WSDL files to generate Java code required to access web services
License: BSD 2-Clause "Simplified" License
Run wsimport on WSDL files to generate Java code required to access web services
License: BSD 2-Clause "Simplified" License
It would be perfect if this plugin gives a possibilty to execute wsimport without the package parameter, so that the package names will be defined by the wsimport.
One solution could be to download the wsdl directly to src/java/wsdl, which throws a NullPointerException at the moment.
Idea:
WsimportTask.groovy checks if relativeSourceFil is null
-> if not: package will be defined
-> if yes: call wsimport without package parameter
Thanks in advance!
Best Regards,
Steve
Hi,
I tried to use your plugin in my project. But when trying to build with Gradle to generate the Java files I got an error, see details below.
plugins {
id 'me.seeber.wsimport' version '1.1.2'
}
Gradle Version: 5.0
Java Home: /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
Gradle Tasks: build
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'myservice'.
> Exception thrown while executing model rule: WsimportPlugin.PluginRules#createWsdlSourceSets(ModelMap<WsimportComponent>, FileOperations) > create(wsdlMain) > create(wsdl)
> Could not create LanguageSourceSet of type WsdlSourceSet
Hello,
I have used the plugin to generate wsdl code, everything works fine on Linux but my coworkers on Windows get an error message "an operand is missing" from the wsimport generated command line.
It appears that the problem come from a parameter set for the generation with an empty value:
B-classpath in WsimportTask.java
The empty value is not well defined on Windows, if I launch the command generated by the plugin with empty single quote '' it works.
Would it possible to fix empty path for Windows or just skip parameter definition with empty path ?
As a work around, how do I set a valid "xjc" path in build.gradle ?
Cheers
The path to package name conversion in WsimportTask does not work under Microsoft Windows. It breaks because of a different file separator on this platform (backslash instead of forward slash). Simple fix:
def packageName = relativeSourceFile.parent.replace(File.separator, '.')
Hi,
I know Java 6 has been end of life. But I am using Java 6 at one of my projects, and I don't think the latest version is compiled against it.
Is there a plan to have Java 6 support?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.