WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.6% of users enabled 2FA.

build.xml 5.65 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="eclipse" default="all" basedir="../..">
john's avatar
john committed
10 11
    <description>DaCapo eclipse benchmark</description>
    <property file="dacapo.properties"/>
12

john's avatar
john committed
13
    <property name="bm-name" value="eclipse"/>
14 15
    <property name="bm-version" value="4.7.2"/>
    <property name="bm-drop" value="201711300510"/>
Rui  Chen's avatar
Rui Chen committed
16 17 18
    <property name="bm-url" value="http://archive.eclipse.org/eclipse/downloads/drops4/R-${bm-version}-${bm-drop}"/>
    <property name="bm-src" value="eclipse-SDK-${bm-version}-macosx-cocoa-x86_64.tar.gz"/>
    <property name="osgi-bootstrap-jar" value="org.eclipse.osgi_3.12.50.v20170928-1321.jar"/>
19

john's avatar
john committed
20 21 22
    <import file="../common.xml"/>
    <property name="eclipse-top" value="${bm-build-dir}/eclipse"/>
    <property name="bm-src-at" value="eclipse-Automated-Tests-${bm-version}.zip"/>
23

john's avatar
john committed
24 25 26
    <property name="workspace-full" value="full-source-R3_0"/>
    <property name="workspace-default" value="${workspace-full}-default"/>
    <property name="workspace-large" value="${workspace-full}-large"/>
27

john's avatar
john committed
28 29 30
    <target name="clean" depends="common.clean">
        <delete dir="${bm-files}/@dot"/>
    </target>
31

john's avatar
john committed
32 33 34 35 36 37 38
    <target name="source" depends="common.source">
        <antcall target="check-source">
            <param name="target-dir" value="${bm-downloads}"/>
            <param name="target-url" value="${bm-url}"/>
            <param name="target-file" value="${bm-src-at}"/>
        </antcall>
    </target>
39

Rui  Chen's avatar
Rui Chen committed
40 41 42 43 44 45 46 47
    <target name="moveEclipse">
        <copy todir="${bm-build-dir}/eclipse/">
            <fileset dir="${bm-build-dir}/Eclipse.app/Contents/Eclipse"/>
        </copy>
        <delete dir="${bm-build-dir}/Eclipse.app"/>
    </target>

    <target name="unpack" depends="untar, moveEclipse"/>
48

john's avatar
john committed
49 50
    <target name="bm-build">
    </target>
51

john's avatar
john committed
52 53 54 55 56 57 58
    <target name="workspace-zips">
        <!-- Unravel the source zip -->
        <unzip src="${bm-downloads}/${bm-src-at}" dest="${bm-build-dir}">
            <patternset>
                <include name="eclipse-testing/eclipse-junit-tests-M*.zip"/>
            </patternset>
        </unzip>
Rui  Chen's avatar
Rui Chen committed
59 60
        <unzip dest="${bm-build-dir}/eclipse-testing/eclipse">
            <fileset dir="${bm-build-dir}/eclipse-testing">
john's avatar
john committed
61 62 63
                <include name="eclipse-junit-tests-M*.zip"/>
            </fileset>
            <patternset>
Rui  Chen's avatar
Rui Chen committed
64
                <include name="plugins/org.eclipse.jdt.core.tests.binaries*"/>
john's avatar
john committed
65 66
            </patternset>
        </unzip>
Rui  Chen's avatar
Rui Chen committed
67 68 69
        <unzip dest="${bm-build-dir}/eclipse-testing/eclipse" >
            <fileset dir="${bm-build-dir}/eclipse-testing/eclipse/plugins"/>
        </unzip>
john's avatar
john committed
70 71 72 73 74
        <unzip dest="${bm-build-dir}/eclipse-testing/workspace">
            <fileset dir="${bm-build-dir}/eclipse-testing/eclipse">
                <include name="**/${workspace-full}.zip"/>
            </fileset>
        </unzip>
75
        <!-- Create two complimentary zips for default and large workspaces -->
john's avatar
john committed
76 77 78 79 80 81 82 83
        <zip destfile="${bm-build-dir}/${workspace-default}.zip" basedir="${bm-build-dir}/eclipse-testing/workspace">
            <patternset includesfile="${bm-files}/bundles-default.lst"/>
        </zip>
        <zip destfile="${bm-build-dir}/${workspace-large}.zip" basedir="${bm-build-dir}/eclipse-testing/workspace">
            <patternset excludesfile="${bm-files}/bundles-default.lst"/>
        </zip>
        <delete dir="${bm-build-dir}/eclipse-testing"/>
    </target>
84

john's avatar
john committed
85
    <!-- This is a bit ugly.  the osgi-bootstrap jar needs to be in the 
86 87 88 89
         classpath at the start, but our harness only wants to deal with
         files in the jar directory.  However we can't simply remove the
         jar from the eclipse directory so for now we do the dumb thing
         of duplicating the jar -->
john's avatar
john committed
90 91 92
    <target name="jar" depends="unpack">
        <copy file="${bm-build-dir}/eclipse/plugins/${osgi-bootstrap-jar}" tofile="${bm-jars}/eclipse.jar"/>
    </target>
93

john's avatar
john committed
94 95
    <!-- build the eclipse plugin, which is necessary to fire up eclipse from within our harness -->
    <target name="plugin" depends="unpack">
96 97 98 99 100 101 102 103
        <ant antfile="build.xml" dir="${bm-files}/plugin" inheritall="false">
            <property name="plugin.destination" location="${bm-build-dir}/eclipse/plugins/"/>
            <target name="clean"/>
            <target name="build.update.jar"/>
        </ant>
        <!-- add our bundle to the configurator metadata -->
        <patch patchfile="${bm-files}/eclipse.patch" dir="${bm-build-dir}" strip="0"/>

john's avatar
john committed
104
    </target>
105

john's avatar
john committed
106 107
    <!-- Create the eclipse data file -->
    <target name="data" depends="plugin, workspace-zips">
108

john's avatar
john committed
109 110
        <!-- where possible, replace jars with empty stubs -->
        <!-- remove this optimization for now; it fails with ant 1.7.0 (but not 1.7.1) sigh.
111 112 113 114 115 116 117
        <delete>
            <fileset dir="${bm-build-dir}" includesfile="${bm-files}/bundles-stub-required.lst"/>
        </delete>
        <touch>
            <fileset dir="${bm-build-dir}" includesfile="${bm-files}/bundles-stub-required.lst"/>
        </touch>
        -->
118

john's avatar
john committed
119 120 121 122 123 124 125 126
        <!-- Install the test data -->
        <zip destfile="${bm-dat}/${bm-name}.zip" basedir="${bm-build-dir}" excludes="eclipse/plugins/**">
            <!-- The eclipse runtime.  We just include as little as we can, -->
            <!-- using an empirically derived list of what we really need.  -->
            <fileset dir="${bm-build-dir}" includesfile="${bm-files}/bundles-required.lst"/>
            <fileset dir="${bm-build-dir}" includesfile="${bm-files}/bundles-stub-required.lst"/>
        </zip>
    </target>
127

steveb-oss's avatar
steveb-oss committed
128
</project>