-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.xml
59 lines (55 loc) · 1.8 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<project name="MetaDIG-checks" default="dist" basedir=".">
<!-- This build file provides tasks to create distributions for the
MetaDIG Quality Engine.
Set properties in the file 'build.properties' to control the operation
of the tasks
-->
<property file="build.properties" />
<description>
MetaDIG Quality Engine Suites and Checks
</description>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
</target>
<target name="dist" depends="init"
description="generate the MetaDIG Checks distribution">
<!-- Create the distribution directory -->
<mkdir dir="${dist}"/>
<mkdir dir="${dist}/checks"/>
<mkdir dir="${dist}/data"/>
<mkdir dir="${dist}/suites"/>
<copy todir="${dist}/data">
<fileset dir="${data}">
</fileset>
</copy>
<exec executable="${bin}/${stagescript}" spawn="false" output="stage.log">
<arg value="src"/>
<arg value="dist"/>
<arg value="${suites}"/>
</exec>
<tar destfile="${dist}/metadig-checks-${metadig-checks.version}.tar">
<tarfileset dir="${dist}/checks"
prefix="checks"
preserveLeadingSlashes="false">
<include name="*.xml"/>
</tarfileset>
<tarfileset dir="${dist}/suites"
prefix="suites"
preserveLeadingSlashes="false">
<include name="*.xml"/>
</tarfileset>
<tarfileset dir="${dist}/data"
prefix="data"
preserveLeadingSlashes="false">
<include name="*.*"/>
</tarfileset>
</tar>
</target>
<target name="clean"
description="clean up">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>