common/build.xml
changeset 866 9dc266797c72
parent 865 d33d458149b9
child 874 60a32d297711
equal deleted inserted replaced
865:d33d458149b9 866:9dc266797c72
   322     </target>
   322     </target>
   323 
   323 
   324     <target name="sf-syncsource">
   324     <target name="sf-syncsource">
   325         <stopwatch name="sf-syncsource"/>
   325         <stopwatch name="sf-syncsource"/>
   326         <touch file="${build.log.dir}/BOM/sources.csv"/> 
   326         <touch file="${build.log.dir}/BOM/sources.csv"/> 
       
   327         <runtarget target="sf-get-source"/>                
   327         <if>
   328         <if>
   328             <istrue value="${sf.spec.sourcesync.enable}" />
   329             <istrue value="${sf.spec.sourcesync.enable}" />
   329             <then>
   330             <then>
   330                 <runtarget target="sf-get-source"/>                
       
   331                 <runtarget target="sf-package-source"/>                
   331                 <runtarget target="sf-package-source"/>                
   332                 <runtarget target="sf-unpack-rnd"/>
   332                 <runtarget target="sf-unpack-rnd"/>
   333             </then>
   333             </then>
   334         </if>        
   334         </if>
   335         <stopwatch name="sf-syncsource" action="elapsed"/>
   335         <stopwatch name="sf-syncsource" action="elapsed"/>
   336     </target>
   336     </target>
   337 
   337 
   338     <target name="sf-get-source" depends="sf-generate-source-spec">
   338     <target name="sf-get-source" depends="sf-generate-source-spec">
   339         <ant antfile="${temp.build.dir}/source-spec.ant.xml" />
   339         <ant antfile="${temp.build.dir}/source-spec.ant.xml" />
   357         for multiple package builds, this needs to be linked with package name. -->
   357         for multiple package builds, this needs to be linked with package name. -->
   358         <!-- TODO: 2. Change fmpp data to be a full property rather than relative path -->
   358         <!-- TODO: 2. Change fmpp data to be a full property rather than relative path -->
   359         <delete file="${temp.build.dir}/source-spec.ant.xml"/>
   359         <delete file="${temp.build.dir}/source-spec.ant.xml"/>
   360         
   360         
   361         <property name="sf.test.csv.file" value="nul:"/>
   361         <property name="sf.test.csv.file" value="nul:"/>
       
   362         
       
   363         <if>
       
   364             <istrue value="${sf.spec.sourcesync.enable}" />
       
   365             <then>
       
   366                 <property name="sf.source.csv.file" value="${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
       
   367             </then>
       
   368         </if>
       
   369         <property name="sf.source.csv.file" value="nul:"/>
   362 
   370 
   363         <fmpp sourceFile="${sf.common.config.dir}/templates/source-spec.ant.xml.ftl"
   371         <fmpp sourceFile="${sf.common.config.dir}/templates/source-spec.ant.xml.ftl"
   364               outputFile="${temp.build.dir}/source-spec.ant.xml">
   372               outputFile="${temp.build.dir}/source-spec.ant.xml">
   365               <data expandProperties="yes">
   373               <data expandProperties="yes">
   366                     ant: antProperties()
   374                     ant: antProperties()
   367                     data: [
   375                     data: [
   368                         csv(${sf.test.csv.file}, {separator:','})
   376                         csv(${sf.test.csv.file}, {separator:','})
   369                         csv(${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}, {separator:','})
   377                         csv(${sf.source.csv.file}, {separator:','})
   370                     ]
   378                     ]
   371               </data>
   379               </data>
   372         </fmpp>
   380         </fmpp>
   373     </target>
   381     </target>
   374     
   382