common/build.xml
changeset 91 786a0a00701e
parent 87 b0bfcd9eca10
child 92 14d4d6666204
equal deleted inserted replaced
90:5b27412eeaf0 91:786a0a00701e
   144         <if>
   144         <if>
   145             <istrue value="${sf.spec.sourcesync.enable}" />
   145             <istrue value="${sf.spec.sourcesync.enable}" />
   146             <then>
   146             <then>
   147                 <runtarget target="sf-get-source"/>
   147                 <runtarget target="sf-get-source"/>
   148                 <runtarget target="sf-merge-epoc32"/>
   148                 <runtarget target="sf-merge-epoc32"/>
   149 
   149                 
   150                 <if><istrue value="${sf.spec.package.src.enable}"/>
   150                 <if><istrue value="${sf.spec.package.src.enable}"/>
   151                 <then>
   151                 <then>
   152                     <echo message="INFO Packaging Source"/>
   152                     <echo message="INFO Packaging Source"/>
   153                     <runtarget target="sf-package-source"/>
   153                     <runtarget target="sf-package-source"/>
   154                 </then>
   154                 </then>
   185                 <echo message="INFO Packaging Binaries"/>
   185                 <echo message="INFO Packaging Binaries"/>
   186                 <runtarget target="sf-package-binary"/>
   186                 <runtarget target="sf-package-binary"/>
   187             </then>
   187             </then>
   188         </if>
   188         </if>
   189 
   189 
       
   190         <if><istrue value="${sf.spec.test.send.enable}"/>
       
   191             <then>
       
   192                 <runtarget target="sf-send-testpkg"/>
       
   193             </then>
       
   194         </if>
       
   195 
   190         <!-- PUBLISH LOGS/REPORTS -->
   196         <!-- PUBLISH LOGS/REPORTS -->
   191         <if>
   197         <if>
   192             <istrue value="${sf.spec.publish.enable}" />
   198             <istrue value="${sf.spec.publish.enable}" />
   193             <then>
   199             <then>
   194                 <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
   200                 <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
   351             <param name="zip.target.name" value="src" />
   357             <param name="zip.target.name" value="src" />
   352         </antcall>
   358         </antcall>
   353     </target>
   359     </target>
   354     
   360     
   355     <target name="sf-package-binary" depends="sf-preprocess-package-config">
   361     <target name="sf-package-binary" depends="sf-preprocess-package-config">
   356         <antcall target="sf-zip-content">
   362         <!--antcall target="sf-zip-content">
   357             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   363             <param name="zip.config.file" value="${sf.common.config.dir}/generated/zip.cfg.xml.ftl"/>
   358             <param name="zip.target.name" value="bin" />
   364             <param name="zip.target.name" value="bin" />
   359         </antcall>
   365         </antcall-->
       
   366 
       
   367         <if><available file="${build.drive}/rnd/internal/initial" type="dir" />
       
   368         <then>
       
   369             <!-- get listing of rnd location for exclude later -->
       
   370             <antcall target="sf-list-dir" inheritAll="false">
       
   371                 <param name="sf.list.name" value="rnd_binaries"/>
       
   372                 <param name="sf.dir.location" value="${build.drive}/rnd/internal/initial"/>
       
   373             </antcall>
       
   374             <echo message="Packaging with exclude list"/>
       
   375             <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
       
   376             <arg value="a"/>
       
   377             <arg value="-tzip"/>
       
   378             <arg value="-x@${build.log.dir}/listdir_${build.id}_rnd_binaries.log"/>
       
   379             <arg value="-x!epoc32\build"/> 
       
   380             <arg value="binaries_epoc.zip"/> 
       
   381             <arg value="epoc32\"/>
       
   382         </exec>
       
   383         </then>
       
   384         <else>
       
   385         <echo message="Packaging without exclude list"/>
       
   386         <exec executable="7za" dir="${build.drive}" output="${build.log.dir}/zip_${build.id}_binaries_epoc32.log">
       
   387             <arg value="a"/>
       
   388             <arg value="-tzip"/>
       
   389             <arg value="-x!epoc32\build"/> <!-- exclude -->
       
   390             <arg value="binaries_epoc.zip"/> 
       
   391             <arg value="epoc32\"/>
       
   392 
       
   393         </exec>
       
   394         </else>
       
   395         </if>
       
   396         <if><available file="${build.drive}/binaries_epoc.zip"/>
       
   397         <then><move file="${build.drive}/binaries_epoc.zip" todir="${build.drive}/output/zips/"/></then>
       
   398         </if>
   360     </target>
   399     </target>
   361 
   400 
   362     <target name="sf-merge-epoc32">
   401     <target name="sf-merge-epoc32">
   363     <!-- conditional execution of merge if rnd dir is found -->
   402     <!-- conditional execution of merge if rnd dir is found -->
   364     <if><available file="${build.drive}/rnd" type="dir" />
   403     <if><available file="${build.drive}/rnd" type="dir" />
   365         <then>
   404         <then>
   366         <echo message="RnD binaries found, fast-copying into ${build.drive}/epoc32 tree"/>
   405         <echo message="RnD binaries found, fast-copying into ${build.drive}/epoc32 tree"/>
   367         <hlm:fastcopy todir="${build.drive}/epoc32" verbose="false" overwrite="true" threadCount="8">
   406         <hlm:fastcopy todir="${build.drive}/epoc32" verbose="true" overwrite="true" threadCount="4">
   368             <fileset dir="${build.drive}/rnd"/>
   407             <fileset dir="${build.drive}/rnd"/>
   369             <regexpmapper from="^(.*)/(.*)/epoc32/(.*)" to="\3" handledirsep="true"/>
   408             <regexpmapper from="^(.*)/(.*)/epoc32/(.*)" to="\3" handledirsep="true"/>
   370         </hlm:fastcopy>
   409         </hlm:fastcopy>
   371         </then>
   410         </then>
   372     </if>
   411     </if>
   373   </target>
   412   </target>
   374 
   413   
       
   414     <target name="sf-send-testpkg">
       
   415         <echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name}"/>
       
   416         <exec executable="perl" dir="${sf.common.config.dir}/tools/" failonerror="true" output="${build.log.dir}/ATS_${build.id}_smoketest.log">
       
   417             <arg value="ats3_testdrop.pl"/>
       
   418             <arg value="${sf.spec.test.host.name}"/>
       
   419             <arg value="${sf.spec.test.host.path}"/>
       
   420             <arg value="${sf.spec.test.package.name}"/>
       
   421             <arg value="${sf.spec.test.package.path}"/>
       
   422         </exec>
       
   423 
       
   424   </target>
       
   425   
   375 </project>
   426 </project>
   376 
   427