-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-simian.xml
49 lines (44 loc) · 2.04 KB
/
build-simian.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="boost-simian" default="ignore" basedir=".">
<import file="build-init.xml"/>
<target name="simian" depends="run_simian,check_simian"/>
<target name="run_simian">
<macro_run_simian code.type="boost"/>
<macro_run_simian code.type="boo"/>
<macro_run_simian code.type="mike"/>
<macro_run_simian code.type="monster"/>
<macro_run_simian code.type="rah"/>
<macro_run_simian code.type="scream"/>
<macro_run_simian code.type="sulley"/>
</target>
<target name="check_simian">
<macro_check_simian code.type="boost"/>
<macro_check_simian code.type="boo"/>
<macro_check_simian code.type="mike"/>
<macro_check_simian code.type="monster"/>
<macro_check_simian code.type="rah"/>
<macro_check_simian code.type="scream"/>
<macro_check_simian code.type="sulley"/>
</target>
<macrodef name="macro_run_simian">
<attribute name="code.type"/>
<sequential>
<mkdir dir="${simian.report.dir}"/>
<taskdef resource="simiantask.properties" classpathref="simian.class.path"/>
<simian threshold="4" language="java" balanceParentheses="true" balanceSquareBrackets="true"
failureProperty="simian.@{code.type}.failed">
<fileset refid="simian.@{code.type}.code"/>
<formatter type="xml" tofile="${simian.report.dir}/simian-@{code.type}.xml"/>
<formatter type="plain"/>
</simian>
<xslt in="${simian.report.dir}/simian-@{code.type}.xml" out="${simian.report.dir}/simian-@{code.type}.html"
style="${simian.config.dir}/simian.xsl"/>
</sequential>
</macrodef>
<macrodef name="macro_check_simian">
<attribute name="code.type"/>
<sequential>
<fail if="simian.@{code.type}.failed" message="Simian detected duplication [@{code.type}]."/>
</sequential>
</macrodef>
</project>