buildframework/helium/builder/build.xml
author srilekhas
Fri, 08 Oct 2010 21:02:28 +0100
changeset 644 01667c882e63
parent 628 7c4a911dc066
child 645 b8d81fa19e7d
permissions -rw-r--r--
Added in fix to Bug 2149
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     2
<!-- 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     3
============================================================================ 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     4
Name        : build.xml 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     5
Part of     : Helium AntLib
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     6
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     7
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     8
All rights reserved.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     9
This component and the accompanying materials are made available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    10
under the terms of the License "Eclipse Public License v1.0"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    11
which accompanies this distribution, and is available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    12
at the URL "http://www.eclipse.org/legal/epl-v10.html".
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    13
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    14
Initial Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    15
Nokia Corporation - initial contribution.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    16
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    17
Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    18
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    19
Description:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    20
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    21
============================================================================
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    22
-->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    23
<project name="helium-builder" default="build" xmlns:au="antlib:org.apache.ant.antunit" xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:ac="antlib:net.sf.antcontrib">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    24
    <property environment="env" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
    <taskdef name="fmpp" classname="fmpp.tools.AntTask" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
    <import file="delivery.ant.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    27
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    28
    <!-- Ensuring that only Ant 1.7.0 is in use. 
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
    <ac:if>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
        <not>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
            <contains string="${ant.version}" substring="1.7.0" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
        </not>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
        <then>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
            <fail message="Your current ant version is ${ant.version}, you must use 1.7.0" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
        </then>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    36
    </ac:if>            -->
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
    <condition property="platform" value="win32" else="unix">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
        <os family="windows"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
    </condition>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    41
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
    <dirname property="builder.dir" file="${ant.file.helium-builder}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43
    <property name="source.root.dir" location="${builder.dir}/.." />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    44
    <property name="build.temp.dir" location="${source.root.dir}/build" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    45
    <property name="components.temp.dir" location="${build.temp.dir}/components" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
    <property name="component" value="*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
    <property name="component.type" value="*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
    <property name="component.root" value="*" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
    <property name="config" value="sf" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    50
    <property name="sf.delivery.zip" location="${build.temp.dir}/helium-sf-src.zip" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    51
    <property name="binary.delivery.zip" location="${build.temp.dir}/helium-bin.zip" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    52
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    53
    <fileset id="ant.build.files" dir="${source.root.dir}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    54
        <include name="${component.root}/${component.type}/${component}/build.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
        <exclude name="*builder/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
        <exclude name="*/*builder/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
        <exclude name="tools/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
        <exclude name="config/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
        <exclude name="doc/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
        <exclude name="external/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
        <exclude name="extensions/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    62
        <exclude name="licences/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
        <exclude name="tests/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    64
        <exclude name="build/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
    </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
  
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    67
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    68
    <target name="cleanup" description="Cleanup (delete the temp build directory)">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    69
        <delete dir="${build.temp.dir}" failonerror="false"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    70
        <delete dir="${source.root.dir}/external/antlibs2" failonerror="false" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    71
        <delete dir="${source.root.dir}/external/python/lib/auto" failonerror="false" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    72
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    73
    
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    74
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    75
    <target name="get-build-list">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    76
        <ivy:buildlist reference="ivy.buildlist.path">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    77
            <fileset refid="ant.build.files"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    78
        </ivy:buildlist>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    79
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    80
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    81
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    82
    <target name="report" depends="get-build-list" description="Create Ivy report for each component">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    83
        <subant target="report" buildpathref="ivy.buildlist.path">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    84
            <property name="builder.dir" location="${builder.dir}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    85
        </subant>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    86
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    87
  
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    88
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    89
    <target name="compile" depends="get-build-list">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    90
        <subant target="compile" buildpathref="ivy.buildlist.path">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    91
            <property name="builder.dir" location="${builder.dir}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    92
            <property name="source.root.dir" value="${source.root.dir}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    93
        </subant>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    94
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    95
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    96
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    97
    <target name="build" depends="get-build-list" description="Build each component">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    98
        <subant target="package" buildpathref="ivy.buildlist.path">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    99
            <property name="builder.dir" location="${builder.dir}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   100
            <property name="source.root.dir" value="${source.root.dir}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   101
            <property name="platform" value="${platform}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   102
        </subant>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   104
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   105
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   106
    <target name="clean" depends="get-build-list" description="Run clean on each component">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   107
        <subant target="clean" buildpathref="ivy.buildlist.path">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   108
            <property name="builder.dir" location="${builder.dir}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   109
            <property name="source.root.dir" value="${source.root.dir}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   110
        </subant>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   111
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   112
  
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   113
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   114
    <target name="test" depends="get-build-list,build" description="Run test on each component">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   115
        <ac:for param="file" keepgoing="true">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   116
            <path refid="ivy.buildlist.path" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   117
            <sequential>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   118
                <ac:trycatch>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   119
                    <try>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   120
                        <echo>Start component test set: @{file}</echo>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   121
                        <ant antfile="@{file}" dir="@{file}/.." target="test" inheritAll="false">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   122
                            <property name="builder.dir" location="${builder.dir}" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   123
                            <property name="source.root.dir" location="${source.root.dir}" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   124
                        </ant>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   125
                        <echo>End component test set: @{file}</echo>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   126
                    </try>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   127
                    <catch>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   128
                        <property name="quality.thrown" value="@{file}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   129
                    </catch>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   130
                </ac:trycatch>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   131
            </sequential>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   132
        </ac:for>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   133
        <ac:if>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   134
            <isset property="quality.thrown"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   135
            <then>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   136
                <fail message="${quality.thrown} failed"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   137
            </then>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   138
        </ac:if> 
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   139
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   140
    <!-- TODO: remove after CI tools are cleaned up -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   141
    <target name="unittest" depends="test"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   142
    
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   143
    
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   144
    <target name="junit" depends="get-build-list" description="Run JUnit tests on each component">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   145
        <subant target="junit" buildpathref="ivy.buildlist.path">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   146
            <property name="builder.dir" location="${builder.dir}" />
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   147
            <property name="source.root.dir" location="${source.root.dir}" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   148
        </subant>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   149
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   150
    
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   151
    
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   152
    <target name="antunit" depends="get-build-list" description="Run AntUnit tests on each component">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   153
        <subant target="antunit" buildpathref="ivy.buildlist.path">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   154
            <property name="builder.dir" location="${builder.dir}" />
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   155
            <property name="source.root.dir" location="${source.root.dir}" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   156
        </subant>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   157
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   158
    
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   159
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   160
    <target name="quality" depends="get-build-list" description="Run quality checks on each component">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   161
        <ac:for param="file" keepgoing="true">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   162
            <path refid="ivy.buildlist.path" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   163
            <sequential>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   164
                <echo>Checking @{file}</echo>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   165
                <ac:trycatch>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   166
                    <try>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   167
                        <ant antfile="@{file}" dir="@{file}/.." target="quality" inheritAll="false">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   168
                            <property name="builder.dir" location="${builder.dir}" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   169
                            <property name="source.root.dir" value="${source.root.dir}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   170
                            <property name="platform" value="${platform}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   171
                        </ant>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   172
                    </try>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   173
                    <catch>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   174
                        <property name="quality.thrown" value="@{file}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   175
                    </catch>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   176
                </ac:trycatch>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   177
            </sequential>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   178
        </ac:for>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   179
        <ac:if>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   180
            <isset property="quality.thrown"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   181
            <then>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   182
                <fail message="${quality.thrown} failed"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   183
            </then>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   184
        </ac:if>  
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   185
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   186
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   187
    
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   188
    <target name="ci" depends="quality"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   189
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   190
    <target name="checkstyle" depends="get-build-list" description="Run checkstyle on each component">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   191
        <ac:for param="file" keepgoing="true">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   192
            <path refid="ivy.buildlist.path" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   193
            <sequential>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   194
                <ac:trycatch>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   195
                    <try>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   196
                        <ant antfile="@{file}" dir="@{file}/.." target="checkstyle" inheritAll="false">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   197
                            <property name="builder.dir" location="${builder.dir}" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   198
                            <property name="source.root.dir" value="${source.root.dir}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   199
                            <property name="platform" value="${platform}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   200
                        </ant>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   201
                    </try>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   202
                    <catch>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   203
                        <property name="quality.thrown" value="@{file}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   204
                    </catch>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   205
                </ac:trycatch>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   206
            </sequential>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   207
        </ac:for>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   208
        <ac:if>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   209
            <isset property="quality.thrown"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   210
            <then>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   211
                <fail message="${quality.thrown} failed"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   212
            </then>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   213
        </ac:if> 
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   214
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   215
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   216
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   217
    <target name="get-deps" description="Retrieving Helium dependencies">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   218
        <ac:if>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   219
            <not>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   220
                <isset property="config" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   221
            </not>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   222
            <then>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   223
                <fail message="config is not defined." />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   224
            </then>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   225
        </ac:if>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   226
        <echo>Using ${config} configuration.</echo>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   227
        <delete>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   228
            <fileset dir="${build.temp.dir}" includes="ivy/com.nokia.helium.config/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   229
        </delete>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   230
        <ivy:settings file="${source.root.dir}/${config}/settings/ivysettings.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   231
        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   232
        <!-- the call to resolve is not mandatory, retrieve makes an implicit call if we don't -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   233
        <ivy:resolve organisation="com.nokia.helium.config" module="helium-${config}-config" revision="1.0" inline="true" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   234
        <ivy:retrieve sync="true" conf="default" organisation="com.nokia.helium.config"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   235
            module="helium-${config}-config" revision="1.0"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   236
            inline="true" type="jar"
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   237
            pattern="${source.root.dir}/external/antlibs2/[artifact]-[revision].[ext]" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   238
        <delete>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   239
           <fileset dir="${source.root.dir}" includes="external/python/lib/auto/zipnotsafe/**" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   240
        </delete>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   241
        <ivy:retrieve sync="true" conf="default" organisation="com.nokia.helium.config"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   242
            module="helium-${config}-config" revision="1.0"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   243
            inline="true" type="egg"
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   244
            pattern="${source.root.dir}/external/python/lib/auto/zipsafe/[artifact]-[revision].[ext]" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   245
        <ivy:retrieve sync="false" conf="default" organisation="com.nokia.helium.config"
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   246
            module="helium-${config}-config" revision="1.0"
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   247
            inline="true" type="py"
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   248
            pattern="${source.root.dir}/external/python/lib/auto/[artifact].[ext]" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   249
        
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   250
        
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   251
        <path id="egg.deps.fileset" >
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   252
            <dirset dir="${source.root.dir}/external/python/lib/auto" includes="*/*.egg" excludes="*/jython*.egg" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   253
            <fileset dir="${source.root.dir}/external/python/lib/auto" includes="*/*.egg" excludes="*/jython*.egg" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   254
        </path>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   255
        <fmpp sourceFile="template/easy-install.pth.ftl" outputFile="${source.root.dir}/external/python/lib/auto/easy-install.pth">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   256
            <data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   257
                project: antProject()
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   258
                ant: antProperties()
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   259
            </data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   260
        </fmpp>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   261
        
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   262
        <path id="egg.hlm.deps.fileset">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   263
            <dirset dir="${source.root.dir}">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   264
                <include name="external/python/lib/**/*.egg" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   265
                <exclude name="**/*amara*" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   266
                <exclude name="**/2.5/**" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   267
            </dirset>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   268
            <fileset dir="${source.root.dir}">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   269
                <include name="external/python/**/*.egg" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   270
                <exclude name="**/*amara*" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   271
                <exclude name="**/2.5/**" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   272
            </fileset>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   273
        </path>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   274
        <fmpp sourceFile="template/configure_jython.bat.ftl" outputFile="${source.root.dir}/external/python/configure_jython.bat">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   275
            <data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   276
                project: antProject()
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   277
                ant: antProperties()
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   278
            </data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   279
        </fmpp>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   280
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   281
        <fmpp sourceFile="template/configure_jython.sh.ftl" outputFile="${source.root.dir}/external/python/configure_jython.sh">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   282
            <data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   283
                project: antProject()
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   284
                ant: antProperties()
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   285
            </data>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   286
        </fmpp>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   287
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   288
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   289
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   290
    <target name="build-helium-docs" unless="skip.docs">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   291
        <exec osfamily="windows" executable="${source.root.dir}/hlm.bat" dir="${source.root.dir}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   292
            <arg value="docs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   293
        </exec>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   294
        <exec osfamily="unix" executable="${source.root.dir}/hlm" dir="${source.root.dir}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   295
            <arg value="docs"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   296
        </exec>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   297
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   298
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   299
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   300
    <target name="zip-releasable">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   301
        <delete file="${binary.delivery.zip}" failonerror="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   302
        <zip destfile="${binary.delivery.zip}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   303
            <zipfileset id="zip.content" dir="${source.root.dir}" prefix="helium">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   304
                <include name="hlm.bat" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   305
                <include name="helium*.ant.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   306
                <include name="build.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   307
                <include name="tools/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   308
                <include name="config/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   309
                <include name="extensions/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   310
                <include name="external/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   311
                <include name="licenses/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   312
                <include name="tests/minibuilds/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   313
                <exclude name="config/version.txt.orig" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   314
                <exclude name="**/distribution.policy.S60" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   315
            </zipfileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   316
            <zipfileset id="zip.doc" dir="${source.root.dir}/build" prefix="helium">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   317
                <include name="doc/**" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   318
                <exclude name="**/distribution.policy.S60" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   319
            </zipfileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   320
            <zipfileset id="zip.executable" dir="${source.root.dir}" prefix="helium" filemode="755">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   321
                <include name="hlm" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   322
            </zipfileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   323
        </zip>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   324
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   325
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   326
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   327
    <target name="get-helium-revision">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   328
        <exec executable="hg" outputproperty="hg.helium.revision">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   329
            <arg value="id" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   330
            <arg value="--id" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   331
        </exec>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   332
        <ac:propertyregex property="helium.revision"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   333
                    input="${hg.helium.revision}"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   334
                    regexp="([a-f0-9]+).*"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   335
                    replace="\1"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   336
                    casesensitive="false" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   337
        <echo message="Revision set to: ${helium.revision}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   338
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   339
    
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   340
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   341
    <target name="update-version" depends="get-helium-revision">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   342
        <ac:if>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   343
            <available file="${source.root.dir}/config/version.txt.orig" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   344
            <then>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   345
                <move file="${source.root.dir}/config/version.txt.orig" tofile="${source.root.dir}/config/version.txt" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   346
            </then>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   347
        </ac:if>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   348
        <copy file="${source.root.dir}/config/version.txt" tofile="${source.root.dir}/config/version.txt.orig" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   349
        <property file="${source.root.dir}/config/version.txt" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   350
        <propertyfile file="${source.root.dir}/config/version.txt" comment="Helium version - DO NOT EDIT">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   351
            <entry key="helium.version" value="${helium.version}-r${helium.revision}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   352
        </propertyfile>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   353
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   354
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   355
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   356
    <target name="restore-version">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   357
        <move file="${source.root.dir}/config/version.txt.orig" tofile="${source.root.dir}/config/version.txt" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   358
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   359
    
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   360
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   361
    <target name="create-releasable" depends="get-deps,update-version,build-helium-docs,zip-releasable,restore-version" description="Create releasable binary package"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   362
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   363
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   364
    <target name="textdoc">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   365
        <delete dir="${build.temp.dir}/doc/doctmp" failonerror="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   366
        <copy todir="${build.temp.dir}/doc/doctmp" overwrite="true">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   367
            <fileset dir="${source.root.dir}/sf/doc/src"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   368
        </copy>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   369
        <copy todir="${build.temp.dir}/doc/doctmp" overwrite="true" flatten="true">
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   370
            <fileset dir="${source.root.dir}" includes="*/java/*/**/*.rst" excludes="*/java/*/doc/**/*.rst" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   371
            <fileset dir="${source.root.dir}" includes="*/python/*/**/*.rst" excludes="*/python/*/doc/**/*.rst" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   372
            <fileset dir="${source.root.dir}" includes="*/java/*/doc/" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   373
            <fileset dir="${source.root.dir}" includes="*/python/*/doc/" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   374
        </copy>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   375
        <rstMacro version="1.0" src="${build.temp.dir}/doc/doctmp"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   376
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   377
    
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   378
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   379
    <!-- Macro to generate html docs from rst. -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   380
    <macrodef name="rstMacro">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   381
        <attribute name="version"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   382
        <attribute name="src" default="${source.root.dir}/sf/doc/src"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   383
        <attribute name="output" default="${build.temp.dir}/doc/text"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   384
        <sequential>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   385
            <property name="sphinx.lib.dir" location="${builder.dir}/tools/sphinx/Sphinx-0.5.1-py2.5.egg/sphinx" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   386
            <exec executable="python" failonerror="${failonerror}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   387
                <env key="PYTHONPATH" path="${builder.dir}/tools/sphinx" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   388
                <arg file="${builder.dir}/tools/sphinx/sphinx-build.py"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   389
                <arg value="-b" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   390
                <arg value="html" />            
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   391
                <arg value="-D" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   392
                <arg value="version=@{version}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   393
                <arg value="-D" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   394
                <arg value="release=@{version}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   395
                <arg file="@{src}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   396
                <arg file="@{output}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   397
            </exec>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   398
        </sequential>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   399
    </macrodef>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   400
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   401
</project>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   402
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   403