summaryrefslogtreecommitdiffstats
path: root/buildhelpers/build.xml
blob: 49c290e9f1ff6e444f76c51b1c45637528a99558 (plain)
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
<?xml version="1.0"?>

<project name="vaadin-buildhelpers" basedir="." default="publish-local">
    <description>
        Compiles build helpers used when building other
        modules.
    </description>
    <include file="../build.xml" as="vaadin" />
    <include file="../common.xml" as="common" />

    <property name="module.name" value="vaadin-buildhelpers" />
    <property name="module.symbolic" value="com.vaadin.buildhelpers" />
    <property name="result.dir" location="result" />
    <path id="classpath.compile.custom" />

    <target name="jar">
        <antcall target="common.jar">
            <reference torefid="extra.jar.includes" refid="empty.reference" />
        </antcall>
    </target>

    <target name="publish-local" depends="jar">
        <antcall target="common.sources.jar">
            <reference torefid="extra.jar.includes" refid="empty.reference" />
        </antcall>
        <antcall target="common.javadoc.jar" />
        <antcall target="common.publish-local" />
    </target>

    <target name="clean">
        <antcall target="common.clean" />
    </target>

    <target name="checkstyle">
        <antcall target="common.checkstyle">
            <param name="cs.src" location="src" />
        </antcall>
    </target>

    <target name="fetch-release-notes-tickets">
        <antcall target="common.exec-buildhelper">
            <param name="main.class" value="com.vaadin.buildhelpers.FetchReleaseNotesTickets" />
            <param name="output" value="${output}" />
            <param name="src" value="src" />
        </antcall>
    </target>

    <target name="fetch-release-notes-authors">
        <copy file="src/com/vaadin/buildhelpers/authormap.properties" tofile="result/classes/com/vaadin/buildhelpers/authormap.properties" />
        <antcall target="common.exec-buildhelper">
            <param name="main.class" value="com.vaadin.buildhelpers.FetchReleaseNotesAuthors" />
            <param name="output" value="${output}" />
            <param name="src" value="src" />
        </antcall>
        <delete file="result/classes/com/vaadin/buildhelpers/authormap.properties" />
    </target>

    <target name="test" depends="checkstyle">
        <!--<antcall target="common.test.run" /> -->
        <echo>WHAT? No JUnit tests for ${module.name}!</echo>
    </target>
</project>