~brian-thomason/+junk/bouncycastle

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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?xml version="1.0" encoding="UTF-8"?>

<project name="crypto1.5" default="build" basedir=".">

    <property name="bc.javac.source" value="1.5" />
    <property name="bc.javac.target" value="1.5" />
    <property name="build.dir" value="build" />
    <property name="jdk.name" value="jdk1.5" />
    <property name="artifacts.dir" value="${build.dir}/artifacts/${jdk.name}" />
    <property name="src.dir" value="${build.dir}/${jdk.name}" />
    <property name="target.prefix" value="jdk15" />
    <property name="javadoc.args" value="-breakiterator" />

    <target name="init">
        <mkdir dir="${src.dir}" />
        <mkdir dir="${artifacts.dir}" />
        <mkdir dir="${artifacts.dir}/reports" />
        <mkdir dir="${artifacts.dir}/reports/xml" />
        <mkdir dir="${artifacts.dir}/reports/html" />
        <mkdir dir="${artifacts.dir}/jars" />
        <mkdir dir="${artifacts.dir}/checkstyle" />
        <copy todir="${src.dir}">
            <fileset dir="src" includes="**/*.java" />
            <fileset dir="src" includes="**/*.html" />
            <fileset dir="src" includes="**/*.properties" />
            <fileset dir="test/src" includes="**/*.java" />
            <fileset dir="test/src" includes="**/*.html" />
            <fileset dir="test/src" includes="**/*.pem" />
            <fileset dir="test/src" includes="**/*.properties" />
            <fileset dir="test/data" includes="**/*.message" />
            <fileset dir="test/data" includes="**/*.eml" />
            <fileset dir="test/data" includes="**/*.sig" />
            <fileset dir="test/data" includes="**/*.data" />
            <fileset dir="test/data" includes="**/*.pem" />
            <fileset dir="test/data" includes="**/*.p7m" />
            <fileset dir="test/data" includes="**/*.crt" />
            <fileset dir="test/data" includes="**/*.crl" />
            <fileset dir="test/data" includes="**/*.der" />
        </copy>
        <available classname="com.puppycrawl.tools.checkstyle.CheckStyleTask" property="checkstyle.on" />
    </target>

    <target name="checkstyle-on" if="checkstyle.on">
        <taskdef resource="checkstyletask.properties" />
        <checkstyle config="checkstyle/bc-checks.xml">
            <fileset dir="${src.dir}">
                <include name="**/*.java"/>
                <exclude name="**/sasn1/*.java"/>
                <exclude name="**/sasn1/test/*.java"/>
            </fileset>
            <formatter type="plain"/>
            <formatter type="xml" toFile="${artifacts.dir}/checkstyle/${jdk.name}-errors.xml"/>
        </checkstyle>
    </target>
    
    <target name="checkstyle-off" unless="checkstyle.on">
    </target>
    
    <target name="build" depends="init">
        <ant antfile="bc-build.xml" dir="." />
        <ant antfile="bc-build.xml" dir="." target="javadoc-lw" />
        <ant antfile="bc-build.xml" dir="." target="javadoc-libraries" />
    </target>

    <target name="build-lw" depends="init">
        <ant antfile="bc-build.xml" dir="." target="build-lw" />
        <ant antfile="bc-build.xml" dir="." target="javadoc-lw" />
    </target>

    <target name="build-provider" depends="init, checkstyle-on, checkstyle-off">
        <ant antfile="bc-build.xml" dir="." target="build-provider" />
        <ant antfile="bc-build.xml" dir="." target="javadoc-provider" />
    </target>

    <target name="build-test" depends="init">
        <ant antfile="bc-build.xml" dir="." target="build-test" />
    </target>

    <target name="test" depends="build-test">
        <ant antfile="bc-build.xml" dir="." target="test" />
    </target>

    <target name="test-lw" depends="build-test">
        <ant antfile="bc-build.xml" dir="." target="test-lw" />
    </target>

    <target name="zip-src">
        <ant antfile="bc-build.xml" dir="." target="zip-src" />
    </target>
</project>