forked from CharlesZ-Chen/CFGVisualization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
39 lines (31 loc) · 1.29 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
<project name="CFGVisualization" default="compile" basedir=".">
<property name="checker-framework" value="${basedir}/../checker-framework"/>
<property name="cfg.bin" location="${basedir}/bin"/>
<property name="cfg.src" location="${basedir}/src"/>
<property name="cfg.build.deps" value="${basedir}/build-deps"/>
<property name="javac.lib" value="${cfg.build.deps}/javac.jar"/>
<target name="prep">
<mkdir dir="${cfg.bin}"/>
<mkdir dir="${cfg.build.deps}"/>
<symlink link="${cfg.build.deps}/dataflow.jar" resource="${checker-framework}/dataflow/dist/dataflow.jar" overwrite="true"/>
</target>
<target name="compile" depends="prep">
<pathconvert pathsep=":" property="cfg.build.classpath">
<path>
<fileset dir="${cfg.build.deps}">
<include name="*.jar"/>
</fileset>
</path>
</pathconvert>
<javac srcdir="${cfg.src}"
destdir="${cfg.bin}"
classpath="${cfg.build.classpath}"
fork="yes">
</javac>
</target>
<!-- delete bin dir itself seems not a good solution, refer to cf project to see
how they do the clean target -->
<target name="clean">
<delete dir="${projectbin}"/>
</target>
</project>