To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

build.xml 2.24 KB
Newer Older
1
2
3
4
5
6
7
8
<!--
 * Copyright (c) 2009 The Australian National University.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Apache License v2.0.
 * You may obtain the license at
 * 
 *    http://www.opensource.org/licenses/apache2.0.php
 -->
9
<project name="sunflow" default="all" basedir="../..">
john's avatar
john committed
10
11
    <description>DaCapo Sunflow benchmark</description>
    <property file="dacapo.properties"/>
12

john's avatar
john committed
13
14
    <property name="bm-name" value="sunflow"/>
    <property name="bm-version" value="0.07.2"/>
John Zhang's avatar
John Zhang committed
15
16
    <property name="bm-url" value="${sourceforge.dl.url}/sunflow/sunflow-src/v${bm-version}"/>
    <property name="bm-bin-url" value="${sourceforge.dl.url}/sunflow/sunflow-bin/v${bm-version}"/>
john's avatar
john committed
17
18
    <property name="bm-src" value="${bm-name}-src-v${bm-version}.zip"/>
    <property name="bm-bin" value="${bm-name}-bin-v${bm-version}.zip"/>
19

john's avatar
john committed
20
    <import file="../common.xml"/>
21

john's avatar
john committed
22
23
24
    <target name="source" depends="common.source">
        <antcall target="check-source">
            <param name="target-dir" value="${bm-downloads}"/>
John Zhang's avatar
John Zhang committed
25
            <param name="target-url" value="${bm-bin-url}"/>
john's avatar
john committed
26
27
28
            <param name="target-file" value="${bm-bin}"/>
        </antcall>
    </target>
29

john's avatar
john committed
30
    <target name="unpack" depends="unzip"/>
31

john's avatar
john committed
32
33
34
    <target name="bm-build" depends="janino">
        <mkdir dir="${bm-build-dir}/build"/>
        <javac srcdir="${bm-build-dir}/${bm-name}/src" source="1.5" 
jzigman's avatar
jzigman committed
35
            classpath="${janino-jar}" destdir="${bm-build-dir}/build"
36
            debug="true" debuglevel="lines,vars,source"/>
john's avatar
john committed
37
38
39
40
41
42
43
44
45
46
    </target>
    
    <target name="bm-data">
        <unzip src="${bm-downloads}/${bm-bin}" dest="${bm-build-dir}"/>
        <unjar src="${bm-build-dir}/${bm-name}/${bm-name}.jar" dest="${bm-build-dir}">
            <patternset>
                <include name="resources/golden_*.png"/>
            </patternset>
        </unjar>
    </target>
47

john's avatar
john committed
48
49
50
51
52
53
54
55
56
57
    <target name="jar" depends="bm-data">
        <jar destfile="${bm-jars}/${bm-name}-${bm-version}.jar">
            <fileset dir="${bm-build-dir}/build">
                <include name="**/*.class"/>
            </fileset>
            <fileset dir="${bm-build-dir}">
                <include name="resources/golden_*.png"/>
            </fileset>
        </jar>
    </target>
steveb-oss's avatar
steveb-oss committed
58

jzigman's avatar
jzigman committed
59
</project>