-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.xml
42 lines (36 loc) · 1.38 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
<project name="min" default="spec">
<target name="init">
<mkdir dir="classes"/>
<dirname property="pwd" file="build.xml"/>
<mkdir dir="classes/min/lang"/>
<propertyfile file="classes/min/lang/default.properties">
<entry key="lib.path" value="${pwd}/lib"/>
</propertyfile>
</target>
<target name="compile" depends="init" description="Compile Java sources.">
<path id="external.classpath">
<pathelement location="bin/jline-1.0.jar"/>
</path>
<javac srcdir="src" destdir="classes" includeJavaRuntime="yes" debug="true">
<classpath>
<path refid="external.classpath"/>
</classpath>
<compilerarg value="-Xlint"/>
</javac>
</target>
<target name="ragel" depends="init" description="Compile Ragel state machines.">
<exec executable="ragel">
<arg value="-J"/>
<arg value="src/min/lang/Scanner.rl"/>
</exec>
</target>
<target name="spec" depends="compile" description="Run specs.">
<exec executable="bin/min">
<arg value="spec/all.min"/>
</exec>
</target>
<target name="clean" description="Remove generated files and directories.">
<delete dir="classes"/>
</target>
<target name="test" description="Just for travis-ci" depends="spec"/>
</project>