common/build.xml
changeset 0 571f289c60b8
child 2 b55de085507d
equal deleted inserted replaced
-1:000000000000 0:571f289c60b8
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <project name="SF-COMMON-CONFIG">
       
     3 	<dirname property="sf.common.config.dir" file="${ant.file.SF-COMMON-CONFIG}"/>
       
     4 
       
     5         <!-- import default properties file config -->
       
     6         <import file="${sf.common.config.dir}/properties.default.ant.xml"/>        
       
     7 
       
     8 	<!-- import all core HELIUM targets -->
       
     9 	<import file="${helium.dir}/helium.ant.xml" />
       
    10         
       
    11         <!-- import sysdef file location config -->
       
    12         <import file="${sf.common.config.dir}/sysdef.config.ant.xml"/>
       
    13         
       
    14         <!--
       
    15         ** TARGET DEFINITIONS
       
    16         -->
       
    17         
       
    18         <target name="sf-build" depends="sf-prep,sf-prebuild,sf-build-run,sf-postbuild">            
       
    19             <echo>[SF-BUILD]</echo>
       
    20         </target>
       
    21         
       
    22         <target name="sf-build-noprep">            
       
    23             <echo>[SF-BUILD-NO-PREP]</echo>
       
    24         </target>
       
    25         
       
    26         <target name="sf-prep" depends="check-tool-dependencies, prep-drive,init-build-area,create-bom,log-build-env">
       
    27             <echo>[SF-PREP]</echo>   
       
    28             <tempfile property="prep.dynamic.config" suffix="ant.xml" destdir="${temp.build.dir}"/>
       
    29             
       
    30             <!-- new implementation that only rely on Ant -->
       
    31             <fmpp sourceFile="${sf.common.config.dir}/templates/hg-prep.ant.xml.ftl"
       
    32                          outputFile="${prep.dynamic.config}">
       
    33                    <data expandProperties="yes">
       
    34                         ant: antProperties()
       
    35                         data: csv(${sf.common.config.dir}/../../build/${hg.config}, {separator:','})
       
    36                     </data>
       
    37             </fmpp>
       
    38             <ant antfile="${prep.dynamic.config}"/>
       
    39         </target>
       
    40         
       
    41         <target name="sf-prebuild" depends="preparation-getenv"> 
       
    42         
       
    43             <echo>[SF-PREBUILD]</echo>                                    
       
    44             
       
    45         </target>
       
    46         
       
    47         <!-- <target name="sf-preparation-getenv">        
       
    48             <antcall target="preparation-getenv">            
       
    49                                 
       
    50             </antcall>        
       
    51         </target>
       
    52         
       
    53         -->
       
    54         
       
    55         <target name="sf-postbuild">            
       
    56             <echo>[SF-POSTBUILD]</echo>                        
       
    57         </target>        
       
    58         
       
    59         <target name="sf-build-run">            
       
    60             <echo>[SF-BUILD-RUN]</echo>
       
    61         </target>
       
    62 
       
    63         
       
    64 </project>
       
    65 
       
    66