<path id="axis.classpath"> <fileset dir="${axis.home}/build/lib"> <include name="**/*.jar" /> </fileset> </path>Then use the <taskdef> declaration to declare all the tasks listed in a properties file inside the axis-ant.jar file:
<taskdef resource="axis-tasks.properties" classpathref="axis.classpath" />
<axis-wsdl2java output="${generated.dir}" testcase="true" verbose="true" url="${local.wsdl}" > <mapping namespace="http://axis.apache.org/ns/interop" package="interop" /> </axis-wsdl2java>The mapping elements are used to list the mappings from XML namespaces to Java packages; you can include as many as you need.
<axis-admin port="${target.port}" hostname="${target.server}" failonerror="true" servletpath="${target.appname}/services/AdminService" debug="true" xmlfile="${endpoint-stub.wsdd}" />Here the target.* properties are pulled from a properties file for the system being deployed to, so a single build file can deploy to different systems with ease.