-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
48 lines (48 loc) · 1.43 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="g2html">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<path id="g2html.classpath">
<pathelement location="bin"/>
</path>
<path id="external.classpath">
<pathelement location="libs/jewelcli-0.8.9.jar"/>
</path>
<target name="init">
<mkdir dir="bin"/>
<mkdir dir="bin/resources"/>
<copy includeemptydirs="false" todir="bin/resources">
<fileset dir="resources" />
</copy>
</target>
<target name="rebuild_lexer">
<exec executable="jflex" dir="src/g2html">
<arg value="CTokens.flex"/>
<arg value="--nobak" />
</exec>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target depends="clean" name="cleanall"/>
<target depends="init" name="build">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false">
<src path="src"/>
<classpath refid="g2html.classpath"/>
<classpath>
<path refid="external.classpath" />
</classpath>
</javac>
</target>
<target depends="build" name="jar">
<jar destfile="g2html.jar"
basedir="bin">
<zipgroupfileset dir="libs" includes="*.jar" excludes=""/>
<manifest>
<attribute name="Main-Class" value="g2html.Main"/>
<attribute name="Class-Path" value="$libs/jewelcli-0.8.9.jar"/>
</manifest>
</jar>
</target>
</project>