added sourcegen entry for the vamsasDocument.xsd objects.
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 22 Sep 2005 09:56:36 +0000 (09:56 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 22 Sep 2005 09:56:36 +0000 (09:56 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@47 be28352e-c001-0410-b1a7-c7978e42abec

build.xml

index 6f7c931..d42cc2e 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -9,6 +9,7 @@
                <property name="outputDir" value="classes" />
                <property name="packageDir" value="packages" />
                <property name="vamsas.schema" value="schemas/vamsas.xsd" />
+               <property name="vamsas.doc.schema" value="schemas/vamsasDocument.xsd" />
                <property name="vamsas.schema.package" value="org.vamsas.objects.core" />
                <property name="vamsas.schema.package.src" value="org/vamsas/objects/core" />
                <property name="vamsas.schema.sourcegen.properties" value="schemas/castorbuilder.properties"/>
        <taskdef name="castor-srcgen"
                  classname="org.exolab.castor.tools.ant.taskdefs.CastorSourceGenTask"
              classpathref="castor.classpath" />
-       <castor-srcgen file="${vamsas.schema}"
+       <!-- Should apply this to every schema file in ${vamsas.schemas} directory -->
+               <castor-srcgen file="${vamsas.schema}"
              todir="${sourceDir}"
              package="${vamsas.schema.package}"
              warnings="false" 
                  nodesc="false"
                properties="${vamsas.schema.sourcegen.properties}"
        />      
+               <castor-srcgen file="${vamsas.doc.schema}"
+                             todir="${sourceDir}"
+                             package="${vamsas.schema.package}"
+                             warnings="false" 
+                                 nodesc="false"
+                               properties="${vamsas.schema.sourcegen.properties}"
+                       />      
        </target>
        <target name="prepare" depends="init">
                <mkdir dir="${packageDir}"/>