Debian Codegraph @

docs/ant/ant.html

raw
1 <html>
2 <title>Axis Ant Tasks</title>
3 <link href="../axis.css" rel=stylesheet type=text/css>
4 <body>
5 <h1>Axis Ant Tasks</h1>
6 Axis comes with Ant tasks to automate aspects of the
7 build process inside ant. To use these tasks, you need
8
9 <ol>
10 <li>
11 <A href="http://jakarta.apache.org/ant">Apache Ant 1.5.1 or later</A>
12 </li>
13 <li>
14 The library <tt>axis-ant.jar</tt> which contains the tasks
15 </li>
16 <li>
17 All the main Axis libraries
18 </li>
19 </ol>
20 <h3>Declaring the Tasks</h3>
21
22
23 To declare the tasks, set up a classpath to include the axis task JAR and
24 all the dependent libraries. Including everything in the axis lib directory
25 should suffice
26 <p>
27
28 <pre>&lt;path id=&quot;axis.classpath&quot;&gt;
29 &lt;fileset dir="${axis.home}/build/lib"&gt;
30 &lt;include name="**/*.jar" /&gt;
31 &lt;/fileset&gt;
32 &lt;/path&gt;
33 </pre>
34
35 Then use the <tt>&lt;taskdef&gt;</tt> declaration to declare all the tasks listed
36 in a properties file inside the <tt>axis-ant.jar</tt> file:
37 <p>
38 <pre>&lt;taskdef resource=&quot;axis-tasks.properties&quot;
39 classpathref=&quot;axis.classpath&quot; /&gt;
40 </pre>
41
42 <h3>Creating Java files from WSDL</h3>
43
44 This uses the <a href="axis-wsdl2java.html">&lt;axis-wsdl2java&gt;</a> task.
45 <p>
46 <pre>&lt;axis-wsdl2java
47 output=&quot;${generated.dir}&quot;
48 testcase=&quot;true&quot;
49 verbose=&quot;true&quot;
50 url=&quot;${local.wsdl}&quot; &gt;
51 &lt;mapping
52 namespace=&quot;http://axis.apache.org/ns/interop&quot;
53 package=&quot;interop&quot; /&gt;
54 &lt;/axis-wsdl2java&gt;
55 </pre>
56
57 The mapping elements are used to list the mappings from XML namespaces to
58 Java packages; you can include as many as you need.
59
60 <h3>Creating WSDL files from Java</h3>
61
62 This uses the <a href="axis-java2wsdl.html">&lt;axis-java2wsdl&gt;</a> task.
63
64
65 <h3>Talking to the admin service</h3>
66
67 This can be done with the
68 <a href="axis-admin.html">&lt;axis-admin&gt;</a> task.
69
70 <p>
71 <pre>&lt;axis-admin
72 port="${target.port}"
73 hostname="${target.server}"
74 failonerror="true"
75 servletpath="${target.appname}/services/AdminService"
76 debug="true"
77 xmlfile="${endpoint-stub.wsdd}"
78 /&gt;
79 </pre>
80 Here the target.* properties are pulled from a properties file for the
81 system being deployed to, so a single build file can deploy to different
82 systems with ease.
83 </body>
84 </html>