Skip to main content
summaryrefslogtreecommitdiffstats
blob: 82c75fe79a716791c99ac293f14a6c8fd7fddb26 (plain) (blame)
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright (c) 2004, 2013 BREDEX GmbH.
    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Eclipse Public License v1.0
    which accompanies this distribution, and is available at
    http://www.eclipse.org/legal/epl-v10.html
 -->
<project name="Jubula" default="cleanBuild-allComponents">
    <description>
        main Jubula releng build script
    </description>

    <target name="cleanBuild-allComponents">
        <antcall target="cleanBuild-dashboard" />
        <antcall target="cleanBuild-ite" />
    </target>

    <target name="cleanBuild-ite" description="Clean build for the ITE feature">
        <antcall target="cleanBuild-template">
            <param name="buildBaseDir" value="org.eclipse.jubula.releng" />
        </antcall>
    </target>

    <target name="cleanBuild-dashboard" description="Clean build for the dashboard product">
        <!-- dynamically / temporarily remove external (optional) dependencies -->
        <property name="dashboardProductLocation" value="org.eclipse.jubula.product.dashboard/org.eclipse.jubula.product.dashboard.product" />
        <copy file="${dashboardProductLocation}" tofile="${dashboardProductLocation}.tmp" overwrite="yes">
            <filterchain>
                <linecontains negate="true">
                    <contains value="com.bredexsw" />
                </linecontains>
            </filterchain>
        </copy>
        <move tofile="${dashboardProductLocation}" file="${dashboardProductLocation}.tmp" overwrite="yes" />

        <antcall target="cleanBuild-template">
            <param name="buildBaseDir" value="org.eclipse.jubula.releng.dashboard" />
        </antcall>

        <!-- revert the dynamically / temporarily remove external (optional) dependencies -->
        <exec dir="${basedir}" executable="git">
            <arg value="checkout" />
            <arg value="${dashboardProductLocation}" />
        </exec>
    </target>

    <target name="cleanBuild-template">
        <exec dir="${buildBaseDir}" executable="mvn" failonerror="true">
            <env key="MAVEN_OPTS" value="-Xmx512m" />
            <arg value="clean" />
            <arg value="verify" />
            <arg value="-V" />
        </exec>
    </target>

</project>

Back to the top