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

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

john's avatar
john committed
13
14
    <property name="bm-name" value="pmd"/>
    <property name="bm-version" value="4.2.5"/>
John Zhang's avatar
John Zhang committed
15
    <property name="bm-url" value="${sourceforge.dl.url}/pmd/pmd/4.2.5"/>
john's avatar
john committed
16
17
18
    <property name="bm-src" value="${bm-name}-src-${bm-version}.zip"/>
    <property name="jaxen-version" value="1.1.1"/>
    <property name="asm-version" value="3.1"/>
19

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

john's avatar
john committed
22
    <property name="bm-build-top" value="${bm-build-dir}/pmd-${bm-version}"/>
23

john's avatar
john committed
24
    <target name="unpack" depends="unzip, patch"/>
25

john's avatar
john committed
26
27
28
29
30
31
32
33
    <target name="bm-build" depends="xerces">
        <ant antfile="libs/junit/build.xml"/>
        <exec dir="${bm-build-top}/bin" executable="ant">
            <arg value="jar"/>
            <env key="CLASSPATH" value=".:${junit-jar}"/>
            <env key="ANT_HOME" value="${ant.install}"/>
        </exec>
    </target>
34

john's avatar
john committed
35
36
37
    <target name="jar" depends="libs">
        <copy file="${bm-build-top}/lib/pmd-${bm-version}.jar" todir="${bm-jars}"/>
    </target>
38

john's avatar
john committed
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
    <target name="data">
        <property name="pmd-data" value="${bm-build-top}/data/pmd"/>
        <mkdir dir="${pmd-data}"/>
        <copy todir="${pmd-data}">
            <fileset dir="${bm-build-top}/src">
                <include name="net/**/*.java"/>
            </fileset>
        </copy>
        <copy todir="${pmd-data}">
            <fileset dir="${bm-build-top}">
                <include name="rulesets/**/*"/>
            </fileset>
        </copy>
        <copy todir="${pmd-data}" >
            <fileset dir="${bm-data}/pmd">
                <include name="*.lst"/>
            </fileset>
        </copy>
        <zip basedir="${bm-build-top}/data" includes="pmd/**" destfile="${bm-dat}/pmd.zip"/>
        <delete dir="${bm-build-top}/data"/>
    </target>
60

john's avatar
john committed
61
62
63
64
    <target name="libs">
        <copy file="${bm-build-top}/lib/jaxen-${jaxen-version}.jar" todir="${bm-jars}"/>
        <copy file="${bm-build-top}/lib/asm-${asm-version}.jar" todir="${bm-jars}"/>
    </target>
65
</project>