wsdl2java is not a core task that's defined in Ant.
The way I did it is to have a separate taskdef.xml file that defines tasks like
wsdl2java and java2wsdl etc, then have your build.xml import taskdef.xml
The taskdef.xml could look like this (change classpath to what you have defined):
<taskdef name="wsdl2java"
classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask">
<classpath refid="build-classpath"/>
</taskdef>
<taskdef name="java2wsdl"
classname="org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask">
<classpath refid="build-classpath"/>
</taskdef>
In your build.xml, add the following lines after "<?xml version="1.0" ?>", assuming
the taskdef.xml is under the same directory as build.xml:
<!DOCTYPE project [
<!ENTITY taskdefs SYSTEM "file:taskdef.xml">
]>
Then the following line:
&taskdefs;
If you need further reference, download the Axis source distribution and take a look.
-----Original Message-----
From: James Black [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 8:47 AM
To: [EMAIL PROTECTED]
Subject: re: problem using wsdl2javaanttask
Hello,
I am using ant version 1.5.4, but am having problems getting the
taskdef to be properly defined.
What I have, is:
<path id=:"axis.class.path">
<fileset dir="/home/jblack/src/axis-1_1/lib">
<include name="*.jar"/>
</fileset>
</path>
<taskdef resource="axis-tasks.properties"
classpathref="axis.class.path"/>
I get an error of
File:build.xml:35: taskdef clss
org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask cannot be found.
I am curious what I may be doing wrong.
I am also using JDK1..2.
Thank you.
--
"We do not lose our identity in our relations with others; in part, at least, we
achieve our identity by those relations." Tony Blair, 1993
This e-mail and any attachment is for authorised use by the intended recipient(s)
only. It may contain proprietary material, confidential information and/or be subject
to legal privilege. It should not be copied, disclosed to, retained or used by, any
other party. If you are not an intended recipient then please promptly delete this
e-mail and any attachment and all copies and inform the sender. Thank you.
LogicaCMG global sponsors, Gartner Symposium, Cannes, 4th -7th November 2003
http://symposium.gartner.com/story.php.id.3323.s.5.html
Please note that LogicaCMG does not have control over content from,or availability of,
this website