blob: d09a60fa9db6cebeb09d7a9cfa1735bc297cf79d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
<project name="Contribute Extra Build Steps" default="noDefault">
<!-- Dummy Default -->
<target name="noDefault">
<echo message="You must specify a target when invoking this file" />
</target>
<!-- ////////////////////////////////////////////////////////////////////// -->
<!-- OSEE BASE EXTRA -->
<!-- ////////////////////////////////////////////////////////////////////// -->
<target name="getDependencies" />
<target name="preFetch">
<antcall target="getAdditionalMaps" />
<if>
<equals arg1="${fetchTag}" arg2="HEAD" />
<then>
<echo message="Building from HEAD" />
</then>
<else>
<echo message="Building from ${fetchTag}" />
<antcall target="updateMapFiles" />
</else>
</if>
</target>
<target name="getAdditionalMaps" if="mapLocation">
<for param="additionalMapFile" delimiter="," list="${mapLocation}">
<sequential>
<propertyregex property="resourceName" override="true" input="@{additionalMapFile}" regexp="[^/}]+$" select="\0" casesensitive="false" />
<get dest="${buildDirectory}/maps/${resourceName}" src="@{additionalMapFile}" />
<concat destfile="${buildDirectory}/directory.txt" append="true" fixlastline="yes">
<fileset file="${buildDirectory}/maps/${resourceName}" />
</concat>
</sequential>
</for>
</target>
<target name="updateMapFiles">
<pathconvert property="map.files" setonempty="false" pathsep=";">
<path>
<fileset dir="${buildDirectory}/maps">
<include name="*.map" />
</fileset>
</path>
</pathconvert>
<for param="map.file" delimiter=";" list="${map.files}">
<sequential>
<updateMapFile file="@{map.file}" tag="${fetchTag}" />
</sequential>
</for>
<updateMapFile file="${buildDirectory}/directory.txt" tag="${fetchTag}" />
<updateMapFile file="${buildDirectory}/../directory.txt" tag="${fetchTag}" />
</target>
<macrodef name="updateMapFile">
<attribute name="file" />
<attribute name="tag" />
<sequential>
<var name="data" unset="true" />
<loadfile property="data" srcfile="@{file}" />
<propertyregex property="new.content" input="${data}" defaultvalue="${data}" regexp="trunk" replace="@{tag}" casesensitive="false" override="true" />
<echo append="false" file="@{file}" message="${new.content}" />
</sequential>
</macrodef>
<target name="postFetch" />
<target name="preGenerate" />
<target name="postGenerate" />
<target name="preAssemble" />
<target name="postAssemble" />
<target name="prePackage" />
<target name="postPackage" />
<target name="preProcess" />
<target name="postProcess" />
<target name="postBuild" />
<target name="extraPackaging">
<ant antfile="${relengBuilderDir}/scripts/createServerRuntime.xml" target="run" inheritrefs="true" inheritall="true" />
</target>
</project>
|