<?xml version="1.0"?>
<project name="vamsas-client" default="build" basedir=".">
+
<target name="init">
<property name="libDir" value="lib"/>
<property name="resourceDir" value="resources"/>
<property name="sourceDir" value="src" />
<property name="outputDir" value="classes" />
<property name="packageDir" value="packages" />
-
+ <property name="vamsas.schema" value="schemas/vamsas15_9.xsd" />
+ <property name="vamsas.schema.package" value="org.vamsas.objects.core" />
+ <property name="vamsas.schema.sourcegen.properties" value="schemas/castorbuilder.properties"/>
+
+ <path id="castor.classpath">
+ <fileset dir="tools">
+ <include name="*.jar"/>
+ <include name="**/*.jar"/>
+ </fileset>
+ <fileset dir="lib">
+ <include name="*.jar"/>
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
<!--
Build classpath
-->
<!-- path refid="axis.classpath" -->
</path>
</target>
-
+ <target name="makecoresource" depends="init" description="Generate Java source files from XSD.">
+ <taskdef name="castor-srcgen"
+ classname="org.exolab.castor.tools.ant.taskdefs.CastorSourceGenTask"
+ classpathref="castor.classpath" />
+ <castor-srcgen file="${vamsas.schema}"
+ todir="${sourceDir}"
+ package="${vamsas.schema.package}"
+ warnings="false"
+ nodesc="true"
+ properties="${vamsas.schema.sourcegen.properties}"
+ />
+
+ </target>
<target name="prepare" depends="init">
<mkdir dir="${packageDir}"/>
<mkdir dir="${outputDir}"/>