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"/> |
|
9 |
|
10 <path id="lib.path"> |
|
11 <fileset dir="${helium.dir}/external/antlibs" includes="**/*.jar"/> |
|
12 </path> |
|
13 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="lib.path"/> |
|
14 <propertyregex override="yes" property="jobname" input="${sf.subproject.path}" regexp=".*[\\/]([^\\^/]+)" replace="\1"/> |
|
15 <property name="jobname" value="${sf.subproject.path}"/> |
|
16 <propertyregex override="yes" property="codeline" input="${sf.subproject.path}" regexp="^([^\\^/]+)[\\/].*" replace="\1"/> |
|
17 <property name="codeline" value="default"/> |
|
18 <property name="sf.spec.job.name" value="${jobname}"/> |
|
19 <property name="sf.spec.job.codeline" value="${codeline}"/> |
7 |
20 |
8 <!-- import job properties --> |
21 <!-- import job properties --> |
9 <import file="${sf.project.location}/${sf.project.name}_props.ant.xml" /> |
22 <import file="${sf.project.location}/${sf.project.name}_props.ant.xml" optional="yes"/> |
10 |
23 |
11 <!-- import project properties/targets/references --> |
24 <!-- import project properties/targets/references --> |
12 <import file="sf-${sf.project.type}/build.xml" /> |
25 <import file="sf-${sf.project.type}/build.xml" /> |
13 |
26 |
14 <!-- import job references --> |
27 <!-- import job references --> |
15 <import file="${sf.project.location}/${sf.project.name}_refs.ant.xml" /> |
28 <import file="${sf.project.location}/${sf.project.name}_refs.ant.xml" optional="yes"/> |
16 |
29 |
17 </project> |
30 </project> |