common/build.xml
changeset 415 cc2965329dd1
parent 414 40b07ed8f169
child 433 68c70e35bd42
equal deleted inserted replaced
414:40b07ed8f169 415:cc2965329dd1
    91             <then>
    91             <then>
    92                 <echo message="Checking build Environment. To suppress this check set property sf.suppress.buildenv.check to any value"/>
    92                 <echo message="Checking build Environment. To suppress this check set property sf.suppress.buildenv.check to any value"/>
    93                 <runtarget target="sf-check-env"/>
    93                 <runtarget target="sf-check-env"/>
    94             </then>
    94             </then>
    95         </if>
    95         </if>
    96         
       
    97     </target>
    96     </target>
    98         
    97         
    99     <target name="sf-check-env">
    98     <target name="sf-check-env">
   100 
       
   101         <!-- Conditional location of BuildEnv.xml. Project always preferred to default -->
    99         <!-- Conditional location of BuildEnv.xml. Project always preferred to default -->
   102         <if><available file="${sf.project.location}/BuildEnv.xml"/>        
   100         <if><available file="${sf.project.location}/BuildEnv.xml"/>        
   103             <then>
   101             <then>
   104                 <property name="sf.buildenv.location" value="${sf.project.location}"/>
   102                 <property name="sf.buildenv.location" value="${sf.project.location}"/>
   105             </then>
   103             </then>
   117             <arg value="--tools='${sf.spec.sbs.tools.config}'"/>
   115             <arg value="--tools='${sf.spec.sbs.tools.config}'"/>
   118             <arg value="Common"/>
   116             <arg value="Common"/>
   119         </exec>
   117         </exec>
   120     </target>
   118     </target>
   121     
   119     
   122     <target name="sf-build-all" depends="sf-prebuild-noprep,sf-build-noprep,sf-postbuild">
       
   123         <echo>[SF-BUILD-ALL]</echo>
       
   124     </target>
       
   125     
       
   126     <target name="sf-summary" depends="">
   120     <target name="sf-summary" depends="">
   127         <echo>[SF-SUMMARY]</echo>
   121         <echo>[SF-SUMMARY]</echo>
   128         <echo message="Generating build summary"/>
   122         <echo message="Generating build summary"/>
   129         <exec executable="perl" dir="${sf.common.config.dir}/tools/summary" failonerror="true">
   123         <exec executable="perl" dir="${sf.common.config.dir}/tools/summary" failonerror="true">
   130           <arg value="brag_script.pl"/>
   124           <arg value="brag_script.pl"/>
   131           <arg value="--buildid=${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
   125           <arg value="--buildid=${sf.spec.job.name}_${sf.spec.job.codeline}.${sf.spec.job.number}"/>
   132           <arg value="--basedir=${sf.spec.job.rootdir}"/>
   126           <arg value="--basedir=${sf.spec.job.rootdir}"/>
   133         </exec>
   127         </exec>
   134     </target>
   128     </target>
   135     
   129     
       
   130     <target name="sf-build-all" depends="sf-prebuild-noprep,sf-build-noprep,sf-postbuild">
       
   131         <echo>[SF-BUILD-ALL]</echo>
       
   132     </target>
       
   133     
   136     <target name="sf-build-and-pack" depends="sf-build-noprep,sf-postbuild">
   134     <target name="sf-build-and-pack" depends="sf-build-noprep,sf-postbuild">
   137         <echo>[SF-BUILD-AND-PACK]</echo>
   135         <echo>[SF-BUILD-AND-PACK]</echo>
   138     </target>
   136     </target>
   139 
   137 
   140     <target name="sf-build" depends="sf-prebuild,sf-build-noprep,sf-postbuild">
   138     <target name="sf-build" depends="sf-prebuild,sf-build-noprep,sf-postbuild">
   141         <echo>[SF-BUILD]</echo>
   139         <echo>[SF-BUILD]</echo>
   142     </target>
   140     </target>
   143     
   141     
   144     <target name="sf-parse-project-config">
   142     <target name="sf-generate-source-spec">
   145     <!-- TODO: Parse the project config and generate properties and csv file to be
       
   146     used by the builds. -->
       
   147         <echo message="Parse the project configuration" />
       
   148     </target>
       
   149     
       
   150     <target name="sf-generate-source-spec" depends="sf-parse-project-config">
       
   151 
       
   152         <!-- Generate the sources.csv if hg cache is activated -->
   143         <!-- Generate the sources.csv if hg cache is activated -->
   153         <if><istrue value="${sf.spec.sourcesync.usecache}"/>
   144         <if><istrue value="${sf.spec.sourcesync.usecache}"/>
   154             <then>
   145             <then>
   155                 <echo message="Generating Hg local cache..." />
   146                 <echo message="Generating Hg local cache..." />
   156                 <mkdir dir="${sf.common.config.dir}/generated"/>
   147                 <mkdir dir="${sf.common.config.dir}/generated"/>