source: fedd/wsdl/build.xml @ d27fd76

axis_examplecompt_changesinfo-opsversion-1.30version-2.00version-3.01version-3.02
Last change on this file since d27fd76 was 7a1918e, checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago

Initial version of abac.wsdl with ant file for building java classes from
the wsdl and schemas.

  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[7a1918e]1<project name="axis-abac" default="compile" basedir=".">
2
3    <description>
4        Integrating attributed-based access control into DETER federations.
5    </description>
6  <!-- set global properties for this build -->
7  <property name="src" location="src"/>
8  <property name="build" location="build"/>
9  <property name="dist"  location="dist"/>
10  <property name="axis.home" location="../axis2-1.5"/>
11  <property name="java.lib"  location="/usr/share/java"/>
12
13  <!-- wsdl specific constants -->
14  <!--property name="axis.home" location="src"/-->
15  <property name="local.wsdl" location="abac.wsdl"/>
16
17  <path id="java.classpath">
18    <fileset dir="${java.lib}">
19      <include name="**/*.jar" />
20    </fileset>
21  </path>
22
23  <path id="axis.classpath">
24    <fileset dir="${axis.home}/lib">
25      <include name="**/*.jar" />
26    </fileset>
27  </path>
28
29  <target name="init">
30    <!-- Create the time stamp -->
31    <tstamp/>
32    <!-- Create the build directory structure used by compile -->
33    <mkdir dir="${build}"/>
34  </target>
35
36  <target name="compile" depends="wsdl" description="compile the source">
37    <!-- Compile the java code from ${src} into ${build} -->
38    <javac srcdir="${src}" destdir="${build}" nowarn="on">
39      <classpath refid="java.classpath"/>
40    </javac>
41  </target>
42
43
44  <target name="wsdl" depends="init" description="generate stubs">
45  <!-- generate java source from the wsdl and xsd files -->
46  <!--axis-wsdl2java output="${src}" testcase="true" verbose="true" all="true"
47    url="${local.wsdl}" -->
48    <java fork="true" classname="org.apache.axis.wsdl.WSDL2Java">
49      <classpath refid="java.classpath"/>
50      <!--classpath refid="axis.classpath"/-->
51      <arg value="--verbose"/>
52      <arg value="--testCase"/>
53      <arg value="--all"/>
54      <arg value="--server-side"/>
55      <arg value="--output"/> <arg value="${src}"/>
56      <arg value="${local.wsdl}"/>
57    </java>
58    <!--/axis-wsdl2java-->
59  </target>
60       
61 <target name="clean" description="remove built code">
62        <delete>
63                <fileset dir="src/edu/isi/www/faber/abac_wsdl"/>
64                <fileset dir="src/edu/isi/www/faber/fedd_types"/>               
65                <fileset dir="src/edu/isi/www/faber/abac_types"/>
66        </delete>
67 </target>     
68
69</project>
Note: See TracBrowser for help on using the repository browser.