Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: 1e
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (47 sloc) 1.897 kb
<?xml version="1.0"?>
<project name="htdg-examples" basedir="." default="examples">
<property name="build.dir" value="build"/>
<property name="dist.dir" value="${build.dir}/dist"/>
<property name="src.dir" value="src/main"/>
<property name="src.test.dir" value="src/test"/>
<property name="data.dir" value="input"/>
<property name="dist.name" value="htdg-examples-0.1.1"/>
<property name="phragmite.pl" value="bin/phragmite_db.pl"/>
<target name="examples" description="Creates an examples distribution to accompany the book.">
<delete dir="${build.dir}"/>
<mkdir dir="${build.dir}"/>
<copy todir="${build.dir}/filteredsrc">
<fileset dir="${src.dir}"/>
</copy>
<replaceregexp flags="gs">
<regexp pattern="// vv[^\n]+\n"/>
<substitution expression=""/>
<fileset dir="${build.dir}/filteredsrc"/>
</replaceregexp>
<tar destfile="${build.dir}/${dist.name}.tar.gz" compression="gzip">
<tarfileset dir="${basedir}" prefix="${dist.name}">
<include name="build.xml"/>
<include name="ivy.xml"/>
<include name="CHANGES"/>
<include name="README"/>
</tarfileset>
<tarfileset dir="${src.dir}" prefix="${dist.name}/${src.dir}">
<exclude name="**/examples/**"/>
<exclude name="**/grunt**"/>
<exclude name="**/sh/**"/>
<exclude name="**/ch03/resources/**"/>
<exclude name="**/ch08/r/**"/>
</tarfileset>
<tarfileset dir="${src.dir}" prefix="${dist.name}/${src.dir}">
<include name="**/app3/**"/>
</tarfileset>
<tarfileset dir="${src.test.dir}" prefix="${dist.name}/${src.test.dir}">
<exclude name="book/**"/>
</tarfileset>
<tarfileset dir="${data.dir}" prefix="${dist.name}/${data.dir}">
<include name="metoffice/**"/>
<include name="ncdc/**"/>
</tarfileset>
</tar>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.