1 <?xml version="1.0" encoding="UTF-8"?> |
1 <?xml version="1.0" encoding="UTF-8"?> |
2 <project name="SF-CONFIG"> |
2 <project name="SF-CONFIG" xmlns:hlm="http://www.nokia.com/helium"> |
3 <!-- location of this config --> |
3 <!-- location of this config --> |
4 <dirname property="sf.config.dir" file="${ant.file.SF-CONFIG}"/> |
4 <dirname property="sf.config.dir" file="${ant.file.SF-CONFIG}"/> |
5 <property name="sf.project.location" value="${sf.config.dir}/../build/config"/> |
5 |
|
6 <property name="sf.subproject.path" value=""/> |
|
7 <property name="sf.project.location" value="${sf.config.dir}/../build/config/${sf.subproject.path}"/> |
6 <property name="sf.project.name" value="job"/> |
8 <property name="sf.project.name" value="job"/> |
7 |
9 |
8 <!-- import job properties --> |
10 <!-- import job properties --> |
9 <import file="${sf.project.location}/${sf.project.name}_props.ant.xml" /> |
11 <import file="${sf.project.location}/${sf.project.name}_props.ant.xml" optional="yes"/> |
|
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 --> |
|
14 <path id="lib.path"> |
|
15 <fileset dir="${helium.dir}/external/antlibs" includes="**/*.jar"/> |
|
16 </path> |
|
17 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="lib.path"/> |
|
18 <propertyregex override="yes" property="jobname" input="${sf.subproject.path}" regexp=".*[\\/]([^\\^/]+)" replace="\1"/> |
|
19 <property name="jobname" value="${sf.subproject.path}"/> |
|
20 <propertyregex override="yes" property="codeline" input="${sf.subproject.path}" regexp="^([^\\^/]+)[\\/].*" replace="\1"/> |
|
21 <property name="codeline" value="default"/> |
|
22 <property name="sf.spec.job.name" value="${jobname}"/> |
|
23 <property name="sf.spec.job.codeline" value="${codeline}"/> |
10 |
24 |
11 <!-- import project properties/targets/references --> |
25 <!-- import project properties/targets/references --> |
12 <import file="sf-${sf.project.type}/build.xml" /> |
26 <import file="sf-${sf.project.type}/build.xml" /> |
13 |
27 |
14 <!-- import job references --> |
28 <!-- import job references --> |
15 <import file="${sf.project.location}/${sf.project.name}_refs.ant.xml" /> |
29 <import file="${sf.project.location}/${sf.project.name}_refs.ant.xml" optional="yes"/> |
16 |
30 |
17 </project> |
31 </project> |