buildframework/helium/tools/preparation/password.ant.xml
changeset 645 b8d81fa19e7d
parent 628 7c4a911dc066
equal deleted inserted replaced
643:27cf35f95864 645:b8d81fa19e7d
    71                 -->
    71                 -->
    72                 <property name="unix.password.available" value="1"/>
    72                 <property name="unix.password.available" value="1"/>
    73             </then>
    73             </then>
    74         </if>
    74         </if>
    75         <hlm:filterRecordStopMacro/>
    75         <hlm:filterRecordStopMacro/>
    76     </target>
       
    77     
       
    78     <!-- Retrieve the GRACE password from the .netrc file and store it into release.grace.password property. -->
       
    79     <target name="grace-password" if="release.grace">
       
    80         <hlm:netrcPasswordMacro output-prop="release.grace.password" result-prop="grace.password.available" type="grace"/>
       
    81         <hlm:logreplace regexp="${release.grace.password}"/>
       
    82     </target>
    76     </target>
    83     
    77     
    84     <!-- Retrieve the NOE password from the .netrc file and store it into noe.password property. -->
    78     <!-- Retrieve the NOE password from the .netrc file and store it into noe.password property. -->
    85     <target name="noe-password">
    79     <target name="noe-password">
    86         <hlm:netrcPasswordMacro output-prop="noe.password" result-prop="noe.password.available" type="noe"/>
    80         <hlm:netrcPasswordMacro output-prop="noe.password" result-prop="noe.password.available" type="noe"/>
   188     </target>
   182     </target>
   189     
   183     
   190     <!-- check synergy is available needs ccm.enabled to be set to 'true' as well.-->
   184     <!-- check synergy is available needs ccm.enabled to be set to 'true' as well.-->
   191     <target name="ccm-check" unless="skip.password.validation" if="internal.ccm.enabled">
   185     <target name="ccm-check" unless="skip.password.validation" if="internal.ccm.enabled">
   192         <hlm:ccmAvailableMacro resultproperty="ccm.session.created"/>
   186         <hlm:ccmAvailableMacro resultproperty="ccm.session.created"/>
   193         <echo>ccm.session.created = ${ccm.session.created}</echo>
       
   194         <if>
       
   195             <equals arg1="${ccm.session.created}" arg2="-1"/>
       
   196             <then>
       
   197                 <fail message="Unable to create CCM session."/>
       
   198             </then>
       
   199         </if>
       
   200         <if>
       
   201             <equals arg1="${ccm.session.created}" arg2="-2"/>
       
   202             <then>
       
   203                 <fail message="Access Denied for user."/>
       
   204             </then>
       
   205         </if>
       
   206     </target>
   187     </target>
   207 </project>
   188 </project>