build.xml
changeset 338 473fefd9c5de
parent 325 779cc88ed845
child 558 e103dd5a90d5
equal deleted inserted replaced
337:1d3a752f6723 338:473fefd9c5de
     4   <dirname property="sf.config.dir" file="${ant.file.SF-CONFIG}"/>
     4   <dirname property="sf.config.dir" file="${ant.file.SF-CONFIG}"/>
     5   
     5   
     6   <property name="sf.subproject.path" value=""/>
     6   <property name="sf.subproject.path" value=""/>
     7   <property name="sf.project.location" value="${sf.config.dir}/../build/config/${sf.subproject.path}"/>
     7   <property name="sf.project.location" value="${sf.config.dir}/../build/config/${sf.subproject.path}"/>
     8   <property name="sf.project.name" value="job"/>
     8   <property name="sf.project.name" value="job"/>
       
     9      
       
    10   <!-- import job properties -->
       
    11   <import file="${sf.project.location}/${sf.project.name}_props.ant.xml" optional="yes"/>
     9   
    12   
       
    13   <!-- set sf.spec.job.name and sf.spec.job.codeline if they are not specified in the project's job_props.ant.xml -->
    10   <path id="lib.path">
    14   <path id="lib.path">
    11     <fileset dir="${helium.dir}/external/antlibs" includes="**/*.jar"/>
    15     <fileset dir="${helium.dir}/external/antlibs" includes="**/*.jar"/>
    12   </path>
    16   </path>
    13   <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="lib.path"/>
    17   <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="lib.path"/>
    14   <propertyregex override="yes" property="jobname" input="${sf.subproject.path}" regexp=".*[\\/]([^\\^/]+)" replace="\1"/>
    18   <propertyregex override="yes" property="jobname" input="${sf.subproject.path}" regexp=".*[\\/]([^\\^/]+)" replace="\1"/>
    15   <property name="jobname" value="${sf.subproject.path}"/>
    19   <property name="jobname" value="${sf.subproject.path}"/>
    16   <propertyregex override="yes" property="codeline" input="${sf.subproject.path}" regexp="^([^\\^/]+)[\\/].*" replace="\1"/>
    20   <propertyregex override="yes" property="codeline" input="${sf.subproject.path}" regexp="^([^\\^/]+)[\\/].*" replace="\1"/>
    17   <property name="codeline" value="default"/>
    21   <property name="codeline" value="default"/>
    18   <property name="sf.spec.job.name" value="${jobname}"/>
    22   <property name="sf.spec.job.name" value="${jobname}"/>
    19   <property name="sf.spec.job.codeline" value="${codeline}"/>
    23   <property name="sf.spec.job.codeline" value="${codeline}"/>
    20      
       
    21   <!-- import job properties -->
       
    22   <import file="${sf.project.location}/${sf.project.name}_props.ant.xml" optional="yes"/>
       
    23   
    24   
    24   <!-- import project properties/targets/references -->
    25   <!-- import project properties/targets/references -->
    25   <import file="sf-${sf.project.type}/build.xml" />
    26   <import file="sf-${sf.project.type}/build.xml" />
    26   
    27   
    27   <!-- import job references -->
    28   <!-- import job references -->