-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
84 lines (74 loc) · 2.83 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- This is slammed together and is not clean, I admit that-->
<project basedir="." default="build" name="markdown-plus">
<property environment="env"/>
<property name="junit.output.dir" value="junit"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.5"/>
<property name="source" value="1.6"/>
<path id="JUnit 4.libraryclasspath">
<pathelement location="${ECLIPSE_HOME}/plugins/org.junit4_4.5.0.v20090824/junit.jar"/>
<pathelement location="${ECLIPSE_HOME}/plugins/org.hamcrest.core_1.1.0.v20090501071000.jar"/>
</path>
<path id="markdown-plus.classpath">
<pathelement location="bin"/>
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</path>
<taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="markdown-plus.classpath"/>
<target name="init">
<mkdir dir="build"/>
<copy includeemptydirs="false" todir="build">
<fileset dir="src/groovy">
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
<exclude name="**/*.groovy"/>
</fileset>
</copy>
</target>
<target name="initTest" depends="init">
<mkdir dir="build"/>
<copy includeemptydirs="false" todir="build">
<fileset dir="test/unit">
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
<exclude name="**/*.groovy"/>
</fileset>
</copy>
<copy includeemptydirs="false" todir="build">
<fileset dir="test/resource">
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
<exclude name="**/*.groovy"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="build"/>
</target>
<target name="build" depends="init">
<groovyc srcdir="src/groovy" destdir="build">
<classpath>
<path refid="markdown-plus.classpath"/>
</classpath>
<javac source="1.5" target="1.5" debug="on" />
</groovyc>
</target>
<target name="AllTests">
<mkdir dir="${junit.output.dir}"/>
<junit fork="yes" printsummary="withOutAndErr">
<formatter type="xml"/>
<test name="nineci.markdownplus.AllTests" todir="${junit.output.dir}"/>
<classpath refid="markdown-plus.classpath"/>
</junit>
</target>
<target name="junitreport">
<junitreport todir="${junit.output.dir}">
<fileset dir="${junit.output.dir}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${junit.output.dir}"/>
</junitreport>
</target>
</project>