Re: ant wsimport2 task example with jdk 11 or above
Atul Pendse <[email protected]> Sun, 22 Dec 2019 05:03:48 +0000
| Newsgroups | gmane.comp.jakarta.ant.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks Craig, I will try this. Thanks, Atul > On 21-Dec-2019, at 11:40 PM, Craig Pell <[email protected]> wrote: > > 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> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]