Re: ant wsimport2 task example with jdk 11 or above
Craig Pell <[email protected]> Sat, 21 Dec 2019 13:09:53 -0500
| Newsgroups | gmane.comp.jakarta.ant.user |
|---|---|
| Message-ID | <[email protected]> |
On 12/20/19 1:47 PM, Atul Pendse wrote:
> Does anyone have an example of wsimport ant task that works with JDK 11 or above?
> I would greatly appreciate any help around this.
>
> We are migrating from jdk8 to jdk 11/12/13, but can't seem to get wsimport working with ant.
JAX-WS has been removed from Java SE starting with Java 11. This means
wsimport and its corresponding Ant task are no longer part of Java SE.
You can download JAX-WS at: https://javaee.github.io/metro-jax-ws/
I haven’t tried this, but you should be able to declare the wsimport
task in a manner pretty similar to how it was done in Java 8:
<taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
<classpath>
<fileset dir="/path/to/jaxws-ri/lib" includes="**/*.jar"/>
</classpath>
</taskdef>