<?xml version="1.0" encoding="UTF-8"?>
<project default="xar" name="DECOR-examples">
    <property name="project.title" value="DECOR example files"/>
    <property name="project.version" value="2.2.19-beta.4"/>
    <property name="project.abbrev" value="DECOR-examples"/>
    <property name="project.app" value="DECOR-examples"/>
    <property name="project.uri" value="http://art-decor.org/ns/examples"/>
    <property name="build.dir" value="build"/>
    <target name="xar">
        <mkdir dir="${build.dir}"/>
        <copy file="expath-pkg.xml.tmpl" tofile="expath-pkg.xml" filtering="true" overwrite="true">
            <filterset>
                <filter token="project.title" value="${project.title}"/>
                <filter token="project.version" value="${project.version}"/>
                <filter token="project.abbrev" value="${project.abbrev}"/>
                <filter token="project.uri" value="${project.uri}"/>
            </filterset>
        </copy>
        <zip basedir="." destfile="${build.dir}/${project.app}-${project.version}.xar" excludes="${build.dir}/* expath-pkg.xml.tmpl"/>
    </target>
</project>
