buildframework/helium/tools/preparation/password.ant.xml
author Bob Rosenberg <bob.rosenberg@nokia.com>
Mon, 13 Sep 2010 13:52:18 +0100
changeset 656 88e01c8f013e
parent 628 7c4a911dc066
child 645 b8d81fa19e7d
permissions -rw-r--r--
Fix merging bug where downstream items somtimes got ignored if they appear after an upstream-only item. Also, reduce the severity of the validation error if a tech-domain is not recognised on a non-Foundation package.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     2
<!-- 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     3
============================================================================ 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     4
Name        : password.ant.xml 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     5
Part of     : Helium 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     6
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     7
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     8
All rights reserved.
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
     9
This component and the accompanying materials are made available
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    10
under the terms of the License "Eclipse Public License v1.0"
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    11
which accompanies this distribution, and is available
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    12
at the URL "http://www.eclipse.org/legal/epl-v10.html".
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    13
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    14
Initial Contributors:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    15
Nokia Corporation - initial contribution.
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    16
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    17
Contributors:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    18
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    19
Description:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    20
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    21
============================================================================
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    22
-->
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    23
<!--* @package preparation -->
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    24
<project name="password" xmlns:hlm="http://www.nokia.com/helium">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    25
    <description>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    26
    Password retrieval targets
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    27
    </description>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    28
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    29
    <!-- Retrieve the ATS password from the .netrc file and store it into ats.password property. -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    30
    <target name="ats-password">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    31
        <hlm:netrcPasswordMacro output-prop="ats.password" result-prop="ats.password.available" type="ats"/>
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
    32
        <hlm:logreplace regexp="ats.password"/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    33
    </target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    34
    
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    35
    <!-- Retrieve the ATS username from the .netrc file and store it into ats.username property. -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    36
    <target name="ats-username">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    37
        <hlm:netrcUsernameMacro output-prop="ats.username" result-prop="ats.username.available" type="ats"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    38
    </target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    39
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    40
    <!-- Retrieve the unix password from the .netrc file and store it into unix.password property. -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    41
    <target name="unix-password">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    42
        <hlm:netrcPasswordMacro output-prop="unix.password" result-prop="unix.password.available" type="synergy"/>
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
    43
        <hlm:logreplace regexp="${unix.password}"/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    44
    </target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    45
    
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    46
    <!-- Retrieve the unix username from the .netrc file and store it into unix.username property. -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    47
    <target name="unix-username">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    48
        <hlm:netrcUsernameMacro output-prop="unix.username" result-prop="unix.username.available" type="synergy"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    49
    </target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    50
    
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    51
    <!-- Ask for unix login using UI. -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    52
    <target name="get-unix-password" depends="unix-username,unix-password">
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
    53
        <hlm:filterRecordStartMacro pattern="${unix.password}" category="unix"/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    54
        <if>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    55
            <not>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    56
                <equals arg1="${unix.password.available}" arg2="0"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    57
            </not>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    58
            <then>
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    59
                <!-- Unix username.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    60
                @type string
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    61
                @scope private
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    62
                -->
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    63
                <property name="unix.username" value="${env.USERNAME}"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    64
                <antform title="User login information">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    65
                    <textProperty label="UNIX login:" property="unix.username"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    66
                    <textProperty label="UNIX password:" property="unix.password" password="true"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    67
                </antform>
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    68
                <!-- Equal 0 if the unix password if available
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    69
                @type string
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    70
                @scope private
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
    71
                -->
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    72
                <property name="unix.password.available" value="1"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    73
            </then>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    74
        </if>
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
    75
        <hlm:filterRecordStopMacro/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    76
    </target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    77
    
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    78
    <!-- Retrieve the GRACE password from the .netrc file and store it into release.grace.password property. -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    79
    <target name="grace-password" if="release.grace">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    80
        <hlm:netrcPasswordMacro output-prop="release.grace.password" result-prop="grace.password.available" type="grace"/>
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
    81
        <hlm:logreplace regexp="${release.grace.password}"/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    82
    </target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    83
    
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    84
    <!-- Retrieve the NOE password from the .netrc file and store it into noe.password property. -->
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    85
    <target name="noe-password">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    86
        <hlm:netrcPasswordMacro output-prop="noe.password" result-prop="noe.password.available" type="noe"/>
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
    87
        <hlm:logreplace regexp="${noe.password}"/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    88
        <if>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    89
            <not>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    90
                <isset property="noe.password"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    91
            </not>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    92
            <then>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    93
                <antform title="NOE login information">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    94
                    <label>Unable to read NOE password from h:\.netrc file.</label>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    95
                    <textProperty label="NOE password:" property="noe.password" password="true"/>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    96
                </antform>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    97
            </then>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    98
        </if>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
    99
    </target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   100
    
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   101
    <!-- Retrieve the notes password from the .netrc file and store it into notes.password property. -->    
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   102
    <target name="notes-password">
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   103
        <hlm:netrcPasswordMacro output-prop="release.notes.password" result-prop="notes.password.available" type="notes"/>
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   104
        <hlm:logreplace regexp="${release.notes.password}" />
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   105
    </target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   106
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   107
    <!-- Retrieve the ccm password from the .netrc file and store it into ccm.password property. 
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   108
    Requires ccm.enabled tobe set to 'true' to work.-->
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   109
    <target name="ccm-password" if="internal.ccm.enabled">
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   110
        <hlm:netrcPasswordMacro output-prop="ccm.password.rc" result-prop="ccm.password.available" type="synergy"/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   111
    </target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   112
    
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   113
    <!-- Retrieve the ccm username from the .netrc file and store it into ccm.username property.
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   114
    Requires ccm.enabled tobe set to 'true' to work. -->
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   115
    <target name="ccm-username" if="internal.ccm.enabled">
179
d8ac696cc51f helium_7.0-r14027
wbernard
parents: 1
diff changeset
   116
        <hlm:netrcUsernameMacro output-prop="ccm.login.rc" result-prop="ccm.username.available" type="synergy"/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   117
    </target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   118
    
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   119
    <!--
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   120
        This target retreive user's login and password and tries to
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   121
        open a synergy session. if it fails it leaves ant
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   122
        it sets the following properties:
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   123
         - ccm.user.login
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   124
         - ccm.user.password
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   125
        it requires ccm.database to be set to the wanted database and ccm.enabled to set to 'true'.
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   126
    -->
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   127
    <target name="get-ccm-password" depends="ccm-password,ccm-username" unless="ccm.user.password" if="internal.ccm.enabled">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   128
        <hlm:filterRecordStartMacro pattern="${ccm.password.rc}" category="ccm"/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   129
        <if>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   130
            <not>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   131
                <and>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   132
                    <isset property="ccm.login.rc"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   133
                    <isset property="ccm.password.rc"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   134
                </and>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   135
            </not>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   136
            <then>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   137
                <if>              
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   138
                    <isset property="ccm.login.popup.disable"/> 
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   139
                    <then>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   140
                        <echo>Error: Unable to read synergy username and password from .netrc file.</echo>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   141
                        <property name="skip.password.validation" value="true"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   142
                    </then> 
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   143
                    <else>
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   144
                        <!-- Contains the user name for CCM by reading the information from .netrc file.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   145
                        @type string
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   146
                        @scope private
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   147
                        -->
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   148
                        <property name="ccm.user.login" value="${env.USERNAME}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   149
                        <antform title="Synergy login information">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   150
                            <label>Unable to read synergy username and password from h:\.netrc file.</label>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   151
                            <textProperty label="ccm login:" property="ccm.user.login"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   152
                            <textProperty label="ccm password:" property="ccm.user.password" password="true"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   153
                        </antform>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   154
                        <property name="ccm.password.available" value="1"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   155
                        <!-- Unix username.
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   156
                        @type string
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   157
                        @scope private
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   158
                        -->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   159
                        <property name="unix.username" value="${env.USERNAME}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   160
                        <!-- Unix password
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   161
                        @type string
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   162
                        @scope private
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents: 179
diff changeset
   163
                        -->
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   164
                        <property name="unix.password" value="${ccm.user.password}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   165
                        <!-- Equal 0 if the unix password if available
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   166
                        @type string
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   167
                        @scope private
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   168
                        -->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   169
                        <property name="unix.password.available" value="1"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   170
                    </else> 
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   171
                </if>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   172
            </then>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   173
            <else>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   174
                <!-- Contains the user name for CCM by reading the information from .netrc file.
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   175
                @type string
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   176
                @scope private
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   177
                -->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   178
                <property name="ccm.user.login" value="${ccm.login.rc}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   179
                <!-- Contains the password for CCM user name by reading the information from .netrc file.
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   180
                @type string
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   181
                @scope private
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   182
                -->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   183
                <property name="ccm.user.password" value="${ccm.password.rc}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   184
            </else>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   185
        </if>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   186
        <antcall target="ccm-check"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   187
        <hlm:filterRecordStopMacro/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   188
    </target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   189
    
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   190
    <!-- check synergy is available needs ccm.enabled to be set to 'true' as well.-->
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   191
    <target name="ccm-check" unless="skip.password.validation" if="internal.ccm.enabled">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   192
        <hlm:ccmAvailableMacro resultproperty="ccm.session.created"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   193
        <echo>ccm.session.created = ${ccm.session.created}</echo>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   194
        <if>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   195
            <equals arg1="${ccm.session.created}" arg2="-1"/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   196
            <then>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   197
                <fail message="Unable to create CCM session."/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   198
            </then>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   199
        </if>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   200
        <if>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   201
            <equals arg1="${ccm.session.created}" arg2="-2"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   202
            <then>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 217
diff changeset
   203
                <fail message="Access Denied for user."/>
1
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   204
            </then>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   205
        </if>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   206
    </target>
be27ed110b50 Bringing in Helium, imaker and cmaker
Alex Gilkes <alex.gilkes@nokia.com>
parents:
diff changeset
   207
</project>