~brian-thomason/+junk/bouncycastle

« back to all changes in this revision

Viewing changes to jdk15.xml

  • Committer: Brian Thomason
  • Date: 2011-12-20 17:20:32 UTC
  • Revision ID: brian.thomason@canonical.com-20111220172032-rdtm13jgdxtksacr
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
 
 
3
<project name="crypto1.5" default="build" basedir=".">
 
4
 
 
5
    <property name="bc.javac.source" value="1.5" />
 
6
    <property name="bc.javac.target" value="1.5" />
 
7
    <property name="build.dir" value="build" />
 
8
    <property name="jdk.name" value="jdk1.5" />
 
9
    <property name="artifacts.dir" value="${build.dir}/artifacts/${jdk.name}" />
 
10
    <property name="src.dir" value="${build.dir}/${jdk.name}" />
 
11
    <property name="target.prefix" value="jdk15" />
 
12
    <property name="javadoc.args" value="-breakiterator" />
 
13
 
 
14
    <target name="init">
 
15
        <mkdir dir="${src.dir}" />
 
16
        <mkdir dir="${artifacts.dir}" />
 
17
        <mkdir dir="${artifacts.dir}/reports" />
 
18
        <mkdir dir="${artifacts.dir}/reports/xml" />
 
19
        <mkdir dir="${artifacts.dir}/reports/html" />
 
20
        <mkdir dir="${artifacts.dir}/jars" />
 
21
        <mkdir dir="${artifacts.dir}/checkstyle" />
 
22
        <copy todir="${src.dir}">
 
23
            <fileset dir="src" includes="**/*.java" />
 
24
            <fileset dir="src" includes="**/*.html" />
 
25
            <fileset dir="src" includes="**/*.properties" />
 
26
            <fileset dir="test/src" includes="**/*.java" />
 
27
            <fileset dir="test/src" includes="**/*.html" />
 
28
            <fileset dir="test/src" includes="**/*.pem" />
 
29
            <fileset dir="test/src" includes="**/*.properties" />
 
30
            <fileset dir="test/data" includes="**/*.message" />
 
31
            <fileset dir="test/data" includes="**/*.eml" />
 
32
            <fileset dir="test/data" includes="**/*.sig" />
 
33
            <fileset dir="test/data" includes="**/*.data" />
 
34
            <fileset dir="test/data" includes="**/*.pem" />
 
35
            <fileset dir="test/data" includes="**/*.p7m" />
 
36
            <fileset dir="test/data" includes="**/*.crt" />
 
37
            <fileset dir="test/data" includes="**/*.crl" />
 
38
            <fileset dir="test/data" includes="**/*.der" />
 
39
        </copy>
 
40
        <available classname="com.puppycrawl.tools.checkstyle.CheckStyleTask" property="checkstyle.on" />
 
41
    </target>
 
42
 
 
43
    <target name="checkstyle-on" if="checkstyle.on">
 
44
        <taskdef resource="checkstyletask.properties" />
 
45
        <checkstyle config="checkstyle/bc-checks.xml">
 
46
            <fileset dir="${src.dir}">
 
47
                <include name="**/*.java"/>
 
48
                <exclude name="**/sasn1/*.java"/>
 
49
                <exclude name="**/sasn1/test/*.java"/>
 
50
            </fileset>
 
51
            <formatter type="plain"/>
 
52
            <formatter type="xml" toFile="${artifacts.dir}/checkstyle/${jdk.name}-errors.xml"/>
 
53
        </checkstyle>
 
54
    </target>
 
55
    
 
56
    <target name="checkstyle-off" unless="checkstyle.on">
 
57
    </target>
 
58
    
 
59
    <target name="build" depends="init">
 
60
        <ant antfile="bc-build.xml" dir="." />
 
61
        <ant antfile="bc-build.xml" dir="." target="javadoc-lw" />
 
62
        <ant antfile="bc-build.xml" dir="." target="javadoc-libraries" />
 
63
    </target>
 
64
 
 
65
    <target name="build-lw" depends="init">
 
66
        <ant antfile="bc-build.xml" dir="." target="build-lw" />
 
67
        <ant antfile="bc-build.xml" dir="." target="javadoc-lw" />
 
68
    </target>
 
69
 
 
70
    <target name="build-provider" depends="init, checkstyle-on, checkstyle-off">
 
71
        <ant antfile="bc-build.xml" dir="." target="build-provider" />
 
72
        <ant antfile="bc-build.xml" dir="." target="javadoc-provider" />
 
73
    </target>
 
74
 
 
75
    <target name="build-test" depends="init">
 
76
        <ant antfile="bc-build.xml" dir="." target="build-test" />
 
77
    </target>
 
78
 
 
79
    <target name="test" depends="build-test">
 
80
        <ant antfile="bc-build.xml" dir="." target="test" />
 
81
    </target>
 
82
 
 
83
    <target name="test-lw" depends="build-test">
 
84
        <ant antfile="bc-build.xml" dir="." target="test-lw" />
 
85
    </target>
 
86
 
 
87
    <target name="zip-src">
 
88
        <ant antfile="bc-build.xml" dir="." target="zip-src" />
 
89
    </target>
 
90
</project>