Skip to content

Commit

Permalink
Add code generation based on WADL file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Morgan committed Jun 23, 2009
1 parent 4e79f73 commit a28d713
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.xml
Expand Up @@ -19,8 +19,13 @@
<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask"
classpathref="compile.classpath"/>

<taskdef name="wjc"
classname="org.jvnet.ws.wadl2java.WJCTask"
classpathref="compile.classpath"/>

<!-- Generate the Java XML bindings -->
<target name="generate">

<mkdir dir="${build.dir}"/>
<mkdir dir="${build.dir}/src"/>
<mkdir dir="${build.dir}/classes"/>
Expand All @@ -31,6 +36,14 @@
<produces dir="${build.dir}/src/org/hyperic/hq/hqapi1/types"
includes="**/"/>
</xjc>

<mkdir dir="${build.dir}/src/org/hyperic/hq/hqapi1/wadl"/>

<wjc description="xsd/HQApi1.wadl" package="org.hyperic.hq.hqapi1.wadl"
autoSchemaPackage="false" target="build/src">
<produces dir="build/src/org/hyperic/hq/hqapi1/wadl" includes="*.java"/>
</wjc>

</target>

<target name="compile" depends="generate">
Expand Down

0 comments on commit a28d713

Please sign in to comment.