common/build.xml
changeset 41 f137ddbb714d
parent 30 62563fa42f57
child 47 d835e951a925
equal deleted inserted replaced
30:62563fa42f57 41:f137ddbb714d
    94         </if>     
    94         </if>     
    95     </target>
    95     </target>
    96     
    96     
    97   <target name="sf-postbuild">
    97   <target name="sf-postbuild">
    98     <echo>[SF-POSTBUILD]</echo>
    98     <echo>[SF-POSTBUILD]</echo>
    99     <runtarget target="publish"/>
    99     
       
   100     <!-- TAG SOURCE CODE -->
       
   101     <if>
       
   102       <istrue value="${sf.spec.tagafterbuild.enable}" />
       
   103       <then>
       
   104         <echo message="Apply tag to the source code used in this build"/>
       
   105         <runtarget target="sf-tag-hg-code"/>
       
   106       </then>
       
   107     </if>
       
   108 
       
   109     <!-- PUBLISH LOGS/REPORTS -->
   100     <if>
   110     <if>
   101       <istrue value="${sf.spec.publish.enable}" />
   111       <istrue value="${sf.spec.publish.enable}" />
   102       <then>
   112       <then>
   103         <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
   113         <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
   104         <runtarget target="publish"/>
   114         <runtarget target="publish"/>
   105       </then>
   115       </then>
   106     </if>
   116     </if>
       
   117     
   107   </target>
   118   </target>
   108     
   119     
   109     <target name="sf-build-noprep" depends="sf-compile">
   120     <target name="sf-build-noprep" depends="sf-compile">
   110         <echo>[SF-BUILD-NOPREP]</echo>
   121         <echo>[SF-BUILD-NOPREP]</echo>
   111     </target>
   122     </target>
   143     </target>
   154     </target>
   144     
   155     
   145     <target name="sf-get-source" depends="sf-generate-source-spec">
   156     <target name="sf-get-source" depends="sf-generate-source-spec">
   146         <ant antfile="${sf.common.config.dir}/generated/source-spec.ant.xml" />
   157         <ant antfile="${sf.common.config.dir}/generated/source-spec.ant.xml" />
   147     </target>
   158     </target>
       
   159     
       
   160     <target name="sf-tag-hg-code">
       
   161       <property name="sf.tagafterbuild.tag" value="${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
       
   162       <fmpp sourceFile="${sf.common.config.dir}/templates/tag-hg-code.ant.xml.ftl"
       
   163             outputFile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml">
       
   164         <data expandProperties="yes">
       
   165               ant: antProperties()
       
   166               data: csv(${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
       
   167         </data>
       
   168       </fmpp>
       
   169       <ant antfile="${sf.common.config.dir}/generated/tag-hg-code.ant.xml"/>
       
   170     </target>
   148 
   171 
   149 </project>
   172 </project>
   150 
   173 
   151 
   174