-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
34 lines (26 loc) · 1.03 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
<?xml version="1.0"?>
<project name="superscalar-processor" basedir="." default="all" xmlns:if="ant:if">
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<target name="clean" description="Clean output directories">
<delete dir="${build.dir}"/>
</target>
<target name="build" description="Compile source tree java files">
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}" destdir="${build.dir}" includeantruntime="false"/>
</target>
<target name="build-jar" depends="build" description="Compiles a JAR from built class files">
<jar destfile="${ant.project.name}.jar" basedir="${build.dir}">
<manifest>
<attribute name="Main-Class" value="core.Main"/>
</manifest>
</jar>
</target>
<target name="run" depends="build-jar">
<java jar="${ant.project.name}.jar" fork="true">
<arg value="${pf}" if:set="pf"/>
<arg value="${i}" if:set="i"/>
</java>
</target>
<target name="all" depends="clean,run"/>
</project>