summaryrefslogtreecommitdiffstats
path: root/buildhelpers/build.xml
blob: 159435811f53c12d04bfe1f2ffe18c3cc1ad8265 (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
<?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}" />
        </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}" />
        </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>