OW2 Consortium activexml

Rev

Rev 2 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<project basedir="." default="bind.all" name="AxmlBinding">
        <description>Binding (JAXB) of Active XML schemas</description>

        <property file="build.properties" />

        <property name="app.model.package" value="fr.inria.gemo.axml.model" />
        <property name="svc.query.package" value="fr.inria.gemo.axml.service.query" />
        <property name="svc.mngmt.package" value="fr.inria.gemo.axml.service.mngmt" />
        <property name="svc.mat.package" value="fr.inria.gemo.axml.service.mat" />
                
        <property name="gen.package.name" value="gen" />
        <property name="bind.src" value="${basedir}/jaxb" />    

        <target name="bind.all">
                <antcall target="bind.model"></antcall>
                <antcall target="bind.query"></antcall>
                <antcall target="bind.mngmt"></antcall>
                <antcall target="bind.mat"></antcall>
        </target>
        
        <path id="jaxb.class.path">
                <fileset dir="${JAXB.LIB}/lib">
                        <include name="*.jar" />
                </fileset>
        </path>

        <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask" classpathref="jaxb.class.path">
        </taskdef>

        <!-- Generate Active XML model from schema -->
        <target name="bind.model">
                <xjc 
                        target="${bind.src}" 
                        package="${app.model.package}.${gen.package.name}" 
                        readonly="true"
                        removeOldOutput="yes">
                        <schema dir="${basedir}/resources">
                                <include name="axml.xsd"/>
                                <include name="axml_related.xsd"/>
                                <include name="algebra.xsd"/>
                        </schema>
                </xjc>
        </target>

        <target name="bind.query">
                <xjc 
                        target="${bind.src}" 
                        package="${svc.query.package}.${gen.package.name}" 
                        readonly="true"
                        removeOldOutput="yes">
                        <schema dir="${basedir}/resources">
                                <include name="query.xsd"/>
                        </schema>
                </xjc>
        </target>
        
        <target name="bind.mngmt">
                <xjc 
                        target="${bind.src}" 
                        package="${svc.mngmt.package}.${gen.package.name}" 
                        readonly="true"
                        removeOldOutput="yes">
                        <schema dir="${basedir}/resources">
                                <include name="continuous_call.xsd"/>
                        </schema>
                </xjc>
        </target>
        
        <target name="bind.mat">
                        <xjc 
                                target="${bind.src}" 
                                package="${svc.mat.package}.${gen.package.name}" 
                                readonly="true"
                                removeOldOutput="yes">
                                <schema dir="${basedir}/resources">
                                        <include name="materialization.xsd"/>
                                </schema>
                        </xjc>
        </target>
        
</project>