-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
40 lines (30 loc) · 1.06 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
<project name="org.omadac.graph">
<property file="build.properties"/>
<property name="ceylon.ant.lib" value="${ceylon.home}/lib/ceylon-ant.jar"/>
<target name="ceylon-ant-taskdefs">
<!-- Create a path to the ceylon-ant.jar -->
<path id="ant-tasks">
<pathelement location="${ceylon.ant.lib}"/>
</path>
<!-- use a typedef to define all the ceylon tasks together -->
<typedef resource="com/redhat/ceylon/ant/antlib.xml" classpathref="ant-tasks"/>
</target>
<target name="clean">
<delete dir="modules"/>
</target>
<target name="compile" depends="ceylon-ant-taskdefs">
<ceylon-compile src="source" out="modules" encoding="UTF-8">
<module name="org.omadac.graph"/>
</ceylon-compile>
</target>
<target name="test-compile" depends="compile">
<ceylon-compile src="test" out="modules" encoding="UTF-8">
<module name="test.org.omadac.graph"/>
</ceylon-compile>
</target>
<target name="test" depends="test-compile">
<ceylon-test>
<module name="test.org.omadac.graph"/>
</ceylon-test>
</target>
</project>