buildframework/helium/tools/common/common.ant.xml
changeset 179 d8ac696cc51f
parent 1 be27ed110b50
child 217 0f5e3a7fb6af
equal deleted inserted replaced
1:be27ed110b50 179:d8ac696cc51f
   111             <hlm:toolvarset refid="cnftool.refid"/>
   111             <hlm:toolvarset refid="cnftool.refid"/>
   112         </hlm:toolMacro>
   112         </hlm:toolMacro>
   113     </target>
   113     </target>
   114 
   114 
   115     <!-- Finds the build manager's (current user) email address from their username. -->
   115     <!-- Finds the build manager's (current user) email address from their username. -->
   116     <target name="lookup-email" if="email.ldap.server">
   116     <target name="lookup-email" >
   117         <if>
   117         <if>
   118             <not>
   118             <isset property="email.ldap.server"/>
   119                 <isset property="email.from"/>
       
   120             </not>
       
   121             <then>
   119             <then>
   122                 <hlm:ldap url="${email.ldap.server}" rootdn="${email.ldap.rootdn}" filter="uid=${env.USERNAME}" outputproperty="email.from" key="mail"/>
   120                 <if>
   123             </then>
   121                     <not>
   124         </if>
   122                         <isset property="email.from"/>
       
   123                     </not>
       
   124                     <then>
       
   125                         <hlm:ldap url="${email.ldap.server}" rootdn="${email.ldap.rootdn}" filter="uid=${env.USERNAME}" outputproperty="email.from" key="mail"/>
       
   126                     </then>
       
   127                 </if>
       
   128             </then>   
       
   129         </if>        
   125     </target>
   130     </target>
   126     
   131     
   127     <!-- To authenticate the noe password (read from .netrc file) for ${env.USERNAME}. -->
   132     <!-- To authenticate the noe password (read from .netrc file) for ${env.USERNAME}. -->
   128     <target name="authenticate-user" if="authenticate.noe.user">
   133     <target name="authenticate-user" if="authenticate.noe.user">
   129         <runtarget target="noe-password"/>
   134         <runtarget target="noe-password"/>
   201     <!-- Displays target dependencies in a text box. 
   206     <!-- Displays target dependencies in a text box. 
   202     
   207     
   203     A <tt>target</tt> property should be defined on the command line to specify which target's dependencies to analyse. -->
   208     A <tt>target</tt> property should be defined on the command line to specify which target's dependencies to analyse. -->
   204     <target name="execlist">
   209     <target name="execlist">
   205         <fail unless="target" message="target property not defined" />
   210         <fail unless="target" message="target property not defined" />
   206         <record name="execlist.txt" action="start" emacsmode="true"/>
   211         <hlm:record name="execlist.txt" action="start" emacsmode="true"/>
   207         <hlm:dependencies target="${target}" format="executable"/>
   212         <hlm:dependencies target="${target}" format="executable"/>
   208         <record name="execlist.txt" action="stop"/>
   213         <hlm:record name="execlist.txt" action="stop"/>
   209         <exec executable="notepad.exe">
   214         <exec executable="notepad.exe">
   210             <arg value="execlist.txt"/>
   215             <arg value="execlist.txt"/>
   211         </exec>
   216         </exec>
   212         <delete file="execlist.txt"/>
   217         <delete file="execlist.txt"/>
   213     </target>
   218     </target>