how to call an Ant task

View: New views
2 Messages — Rating Filter:   Alert me  

how to call an Ant task

by ilango_g :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi
I have a build.xml that has the following:

<target name="generate-Metro-jaxws">
      <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
         <classpath refid="metro.classpath"/>
      </taskdef>
      <wsimport destdir="build/classes"
         sourcedestdir="src" wsdl="etc/${wsdl.file}"/>
   </target>

I need to call the "generate-Metro-jaxws task (or should I say, target) to generate some Java classes.

I would be grateful for any suggestions.

thanks
Ilango

Re: how to call an Ant task

by Scot P. Floess :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are you asking how to invoke generate-Metro-jaxws from command line?

ant generate-Metro-jaxws

Will do it...

Or are you wanting it to be invoked from another target? Or something else?


ilango_g wrote:

> Hi
> I have a build.xml that has the following:
>
> <target name="generate-Metro-jaxws">
>       <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
>          <classpath refid="metro.classpath"/>
>       </taskdef>
>       <wsimport destdir="build/classes"
>          sourcedestdir="src" wsdl="etc/${wsdl.file}"/>
>    </target>
>
> I need to call the "generate-Metro-jaxws task (or should I say, target) to
> generate some Java classes.
>
> I would be grateful for any suggestions.
>
> thanks
> Ilango
>  

--
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...