buildframework/helium/tools/preparation/preparation.ant.xml
changeset 587 85df38eb4012
parent 217 0f5e3a7fb6af
child 588 c7c26511138f
equal deleted inserted replaced
217:0f5e3a7fb6af 587:85df38eb4012
    35     <!-- To check which ccmgetinput helium will be use
    35     <!-- To check which ccmgetinput helium will be use
    36     @type string
    36     @type string
    37     -->
    37     -->
    38     <property name="ccmgetinput" value="ccmgetinput" />
    38     <property name="ccmgetinput" value="ccmgetinput" />
    39 
    39 
       
    40     <typedef file="${ant.file.preparation}/../preparation.antlib.xml" uri="http://www.nokia.com/helium"/>
    40     <import file="bom/bom.ant.xml" />
    41     <import file="bom/bom.ant.xml" />
    41     <import file="password.ant.xml" />
    42     <import file="password.ant.xml" />
    42     <import file="ido-prep.ant.xml" />
    43     <import file="ido-prep.ant.xml" />
    43     <import file="synergy/ccmgetinput.ant.xml" />
    44     <import file="synergy/ccmgetinput.ant.xml" />
    44     <import file="synergy/buildmanagement.ant.xml" />
    45     <import file="synergy/buildmanagement.ant.xml" />
    68                     </not>
    69                     </not>
    69                     <then>
    70                     <then>
    70                         <exec executable="perl" dir="${build.drive}/" failonerror="true">
    71                         <exec executable="perl" dir="${build.drive}/" failonerror="true">
    71                             <arg value="${getenv.tool.location}"/>
    72                             <arg value="${getenv.tool.location}"/>
    72                             <arg value="-start"/>
    73                             <arg value="-start"/>
    73                             <arg value="-nosoap"/>            
       
    74                             <arg value="-path"/>
    74                             <arg value="-path"/>
    75                             <arg value="${base_release.path}"/>
    75                             <arg value="${base_release.path}"/>
    76                             <arg line="${base_release.getenv_options}"/>
    76                             <arg line="${base_release.getenv_options}"/>
    77                         </exec>
    77                         </exec>
    78                     </then>
    78                     </then>
   306         <propertyref name="release.grace.password" />
   306         <propertyref name="release.grace.password" />
   307         <propertyref name="unix.password" />
   307         <propertyref name="unix.password" />
   308         <propertyref name="release.notes.password" />
   308         <propertyref name="release.notes.password" />
   309         <propertyref name="nwiki.password" />
   309         <propertyref name="nwiki.password" />
   310         <propertyref name="noe.password" />
   310         <propertyref name="noe.password" />
   311         <propertyref name="ats3.password" />
   311         <propertyref name="ats.password" />
   312         <propertyref name="hydra.password" />
   312         <propertyref name="hydra.password" />
   313     </propertyset>
   313     </propertyset>
   314     
   314     
   315     <!-- Logs the Ant property build environment. -->
   315     <!-- Logs the Ant property build environment. -->
   316     <target name="log-build-env">
   316     <target name="log-build-env">
   357             <then>
   357             <then>
   358                 <antcall target="dragonfly-prep-drive"/>
   358                 <antcall target="dragonfly-prep-drive"/>
   359             </then>
   359             </then>
   360             <else>
   360             <else>
   361                 <if>
   361                 <if>
   362                     <not>
   362                     <and>
   363                         <isset property="build.drive.notdefined"/>
   363                         <not>
   364                     </not>
   364                             <isset property="build.drive.notdefined"/>
       
   365                         </not>
       
   366                         <os family="windows"/>
       
   367                     </and>
   365                     <then>
   368                     <then>
   366                         <echo>Unsubsting any existing path substed to ${build.drive}.
   369                         <echo>Unsubsting any existing path substed to ${build.drive}.
   367 If this fails, it is because there was no substed drive.</echo>
   370 If this fails, it is because there was no substed drive.</echo>
   368                         <hlm:unsubst drive="${build.drive}" failonerror="${failonerror}"/>
   371                         <hlm:unsubst drive="${build.drive}" failonerror="${failonerror}"/>
   369                     </then>   
   372                     </then>   
   394 
   397 
   395         raise Exception('Could not rename prep dir')
   398         raise Exception('Could not rename prep dir')
   396                         </script>
   399                         </script>
   397                     </then>
   400                     </then>
   398                 </if>
   401                 </if>
   399                 <!-- Create a new directory for the build and subst it to a drive. -->
   402                 <!-- Create a new directory for the build and subst it to a drive. 
       
   403                 fail build if prep.root.dir property is not set.-->
       
   404                 <fail unless="prep.root.dir" message="prep.root.dir value should be specified." />
   400                 <mkdir dir="${prep.build.dir}" />
   405                 <mkdir dir="${prep.build.dir}" />
       
   406                 
   401                 <exec osfamily="windows" executable="subst.exe" failonerror="false">
   407                 <exec osfamily="windows" executable="subst.exe" failonerror="false">
   402                     <arg value="${build.drive}" />
   408                     <arg value="${build.drive}" />
   403                     <arg value="${prep.build.dir}" />
   409                     <arg value="${prep.build.dir}" />
   404                 </exec>
   410                 </exec>
   405                 <antcall target="backup-subst-drives"/>
   411                 <antcall target="backup-subst-drives"/>
   466     </target>    
   472     </target>    
   467    
   473    
   468     <!-- Used to prep the build area, now only a placeholder target for the customer -->
   474     <!-- Used to prep the build area, now only a placeholder target for the customer -->
   469     <target name="prep-copy" />
   475     <target name="prep-copy" />
   470 
   476 
       
   477     <!--* @property ccm.enabled
       
   478     Defines that property if you want the ccm-get-input step to be run during the build area preparation.
       
   479     @type boolean
       
   480     @editable required
       
   481     @scope public
       
   482     -->
   471     
   483     
   472     <condition property="run.ccm">
   484     <condition property="run.ccm">
   473         <and>
   485         <and>
   474             <not>
   486             <not>
   475                 <equals arg1="${ccm.enabled}" arg2="false" casesensitive="true"/>
   487                 <equals arg1="${ccm.enabled}" arg2="false" casesensitive="true"/>
   572                 <hlm:unsubst drive="${build.drive}"/>
   584                 <hlm:unsubst drive="${build.drive}"/>
   573             </then>
   585             </then>
   574         </if>
   586         </if>
   575     </target>
   587     </target>
   576     
   588     
       
   589     <!--
       
   590       Simple target to create a set of directory based on a path reference.
       
   591      -->
       
   592     <target name="create-directory-structure">
       
   593         <if>
       
   594             <isreference refid="directory.structure.config" />
       
   595             <then>
       
   596                 <for param="dir">
       
   597                     <path refid="directory.structure.config" />
       
   598                     <sequential>
       
   599                         <mkdir dir="@{dir}" />
       
   600                     </sequential>
       
   601                 </for>
       
   602             </then>
       
   603             <else>
       
   604                 <echo>'directory.structure.config' reference not found, so not any directory structure will be created.</echo>
       
   605             </else>
       
   606         </if>
       
   607     </target>
   577     
   608     
   578 </project>
   609 </project>