-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
33 lines (30 loc) · 1.2 KB
/
build.xml
File metadata and controls
33 lines (30 loc) · 1.2 KB
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
<project name="cs621" default="compile" basedir=".">
<description>provided code for COMP621 assignment 2</description>
<property name="src" location="src" />
<property name="bin" location="bin" />
<property name="natlab-jar" location="Natlab.jar" />
<macrodef name="write-runner-script">
<attribute name="file" />
<attribute name="class" />
<sequential>
<echo file="@{file}">#!/bin/bash
java -cp ${bin}:${natlab-jar} @{class} "$@"
</echo>
<chmod file="@{file}" perm="755" />
</sequential>
</macrodef>
<target name="compile" depends="clean" description="compile everything">
<mkdir dir="${bin}" />
<javac includeantruntime="false"
srcdir="${src}" destdir="${bin}" classpath="${natlab-jar}" />
<write-runner-script file="profile.sh"
class="natlab.cs621.instrumentation.Main" />
<write-runner-script file="analyze-live-variable.sh"
class="natlab.cs621.analysis.Main" />
</target>
<target name="clean" description="clean up">
<delete dir="${bin}" failonerror="false" />
<delete file="profile.sh" failonerror="false" />
<delete file="analyze-live-variable.sh" failonerror="false" />
</target>
</project>