ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: where is wsdl2Java?
Date Wed, 29 Nov 2006 15:13:43 GMT
Martin Gainty wrote:
> Hi Scott-
> 
> I copied $AXIS2_HOME/lib/axis-codegen-1.0.jar (size 189.558) to %ANT_HOME/lib and ran
the samples.xbeans build.xml compile task
> 
> first I editted the build.xml to include the WSDL2Java class
> vi build.xml
>         <taskdef name="wsdl2java"
>          classname="org.apache.axis2.wsdl.WSDL2Java"
>          classpathref="classpath"/>
> 
> cd $AXIS2_HOME/samples/xbeans


> compile:
> No public execute() in class org.apache.axis2.wsdl.WSDL2Java
> 
> BUILD FAILED
> C:\AXIS\Axis-2_1\src\axis\samples\xbeans\build.xml:61: No public execute() in class org.apache.axis2.wsdl.WSDL2Java
> 
> So it appears that class org.apache.axis2.wsdl.WSDL2Java not having execute() method
will not allow the class to be taskdef'ed in Ant
> 

That means it isnt an ant task. Ant will turn any class which implements 
public void execute() into a task, but not things that don't. Wsdl2Java 
has to be somewhere else.

In my copy of axis2 from a year ago, the axis-ant-plugin module has a 
class org.apache.axis2.tool.ant.AntCodegenTask. I do not know if this is 
what you want or not. I'd also point you at the axis user and then axis 
dev mail lists, as they are the people who know the code.

-steve



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


Mime
View raw message