common/build.xml
changeset 33 4753c9491d0c
parent 30 62563fa42f57
child 37 00208f982d58
child 41 f137ddbb714d
equal deleted inserted replaced
32:efb1d1f8809a 33:4753c9491d0c
     8     <!-- import common properties -->
     8     <!-- import common properties -->
     9     <import file="${sf.common.config.dir}/common_props.ant.xml" />
     9     <import file="${sf.common.config.dir}/common_props.ant.xml" />
    10     
    10     
    11     <!-- setup Helium internal properties from their equivalent in the project spec -->
    11     <!-- setup Helium internal properties from their equivalent in the project spec -->
    12     <property name="build.name" value="${sf.spec.job.name}"/>
    12     <property name="build.name" value="${sf.spec.job.name}"/>
       
    13     <property name="core.build.version" value="${sf.spec.job.codeline}"/>
    13     <property name="build.number" value="${sf.spec.job.number}"/>
    14     <property name="build.number" value="${sf.spec.job.number}"/>
       
    15     <property name="build.drive" value="${sf.spec.job.drive}"/>
    14     <property name="build.family" value="${sf.project.type}"/>
    16     <property name="build.family" value="${sf.project.type}"/>
    15     <property name="core.build.version" value="${sf.spec.corebuildversion}"/>
       
    16     <property name="email.from" value="${sf.spec.email.from}"/>
    17     <property name="email.from" value="${sf.spec.email.from}"/>
    17     <property name="local.free.space" value="${sf.spec.job.freespace}"/>
    18     <property name="local.free.space" value="${sf.spec.job.freespace}"/>
    18     <property name="network.free.space" value="${sf.spec.publish.network.freespace}"/>
    19     <property name="network.free.space" value="${sf.spec.publish.network.freespace}"/>
    19     <property name="network.drive" value="${sf.spec.publish.networkdrive}"/>
    20     <property name="network.drive" value="${sf.spec.publish.networkdrive}"/>
    20     <property name="publish.root.dir" value="${sf.spec.publish.publish.rootdir}"/>
    21     <property name="prep.root.dir" value="${sf.spec.job.rootdir}"/>
       
    22     <property name="publish" value="${sf.spec.publish.enable}"/>
       
    23     <property name="publish.root.dir" value="${sf.spec.publish.rootdir}"/>
    21     <property name="build.system" value="${sf.spec.build.system}"/>
    24     <property name="build.system" value="${sf.spec.build.system}"/>
    22     <property name="base_release.path" value="${sf.spec.baseline.location}"/>
    25     <property name="base_release.path" value="${sf.spec.baseline.location}"/>
    23     <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
    26     <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
    24     
    27     
    25     <!-- import all core HELIUM targets -->
    28     <!-- import all core HELIUM targets -->
    89                 <runtarget target="sf-get-source"/>
    92                 <runtarget target="sf-get-source"/>
    90             </then>
    93             </then>
    91         </if>     
    94         </if>     
    92     </target>
    95     </target>
    93     
    96     
    94     <target name="sf-postbuild">
    97   <target name="sf-postbuild">
    95         <echo>[SF-POSTBUILD]</echo>
    98     <echo>[SF-POSTBUILD]</echo>
    96     </target>
    99     <runtarget target="publish"/>
       
   100     <if>
       
   101       <istrue value="${sf.spec.publish.enable}" />
       
   102       <then>
       
   103         <echo message="Publish log files and reports to ${sf.spec.publish.rootdir}"/>
       
   104         <runtarget target="publish"/>
       
   105       </then>
       
   106     </if>
       
   107   </target>
    97     
   108     
    98     <target name="sf-build-noprep" depends="sf-compile">
   109     <target name="sf-build-noprep" depends="sf-compile">
    99         <echo>[SF-BUILD-NOPREP]</echo>
   110         <echo>[SF-BUILD-NOPREP]</echo>
       
   111     </target>
       
   112     
       
   113     <target name="create-canonical-sysdef-file">
       
   114       <if>
       
   115         <istrue value="${sf.spec.systemdefinition.assemble}"/>
       
   116         <then>
       
   117           <echo message="Calling Helium create-canonical-sysdef-file target to assemble sysdef fragments."/>
       
   118           <runtarget target="compile.create-canonical-sysdef-file"/>
       
   119         </then>
       
   120         <else>
       
   121           <echo message="Will use ${build.drive}/${sf.spec.systemdefinition.location} as is as sysdef file"/>
       
   122           <copy file="${build.drive}/${sf.spec.systemdefinition.location}" tofile="${build.drive}/output/build/canonical_system_definition.xml" failonerror="true" verbose="true"/>
       
   123         </else>
       
   124       </if>
   100     </target>
   125     </target>
   101     
   126     
   102     <target name="sf-compile">    
   127     <target name="sf-compile">    
   103     
   128     
   104     	<!-- TODO: add here assigments to raptor-related ant references -->
   129     	<!-- TODO: add here assigments to raptor-related ant references -->