-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproperties.xml
More file actions
104 lines (93 loc) · 6.75 KB
/
Copy pathproperties.xml
File metadata and controls
104 lines (93 loc) · 6.75 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<project name="properties">
<!--
Override order (from less important to most important):
1. All properties from phing base directory in
"build/properties/[group].prop" files. These are defaults. Please
don't ever change defaults. Use .override.prop files if you want
to make any changes.
2. All properties from phing base directory in
"build/properties/[group].override.prop" files.
3. All properties from project root directory in
"build/properties/[group].prop" files.
4. All properties from project root directory in
"build/properties/[group].override.prop" files.
So properties in phing base directory will be overridden by properties in
all other locations.
-->
<!--
We could not use foreach to include prop files here because phingcalling
target outside any target will cause Phing to go into infinite loop. So
a lot of repetitive code here.
-->
<!-- druphing -->
<!-- This must not override variables from ${druphing.build_dir.name} directory if any exists so no override="true". -->
<if><available file="${druphing.base_path}build/properties/druphing.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.base_path}build/properties/druphing.prop" /></then></if>
<!-- Defaults for standalone Drupal Phing. -->
<if><available file="${druphing.build_dir.name}properties/druphing.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.build_dir.name}properties/druphing.prop" /></then></if>
<!-- env -->
<if>
<not>
<equals arg1="${druphing.base_path}" arg2="" />
</not>
<then>
<if><available file="${druphing.base_path}build/properties/env.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.base_path}build/properties/env.prop" /></then></if>
<if><available file="${druphing.base_path}build/properties/env.override.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.base_path}build/properties/env.override.prop" override="true" /></then></if>
</then>
</if>
<if><available file="${druphing.build_dir.name}properties/env.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.build_dir.name}properties/env.prop" override="true" /></then></if>
<if><available file="${druphing.build_dir.name}properties/env.override.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.build_dir.name}properties/env.override.prop" override="true" /></then></if>
<!-- project -->
<if>
<not>
<equals arg1="${druphing.base_path}" arg2="" />
</not>
<then>
<if><available file="${druphing.base_path}build/properties/project.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.base_path}build/properties/project.prop" /></then></if>
<if><available file="${druphing.base_path}build/properties/project.override.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.base_path}build/properties/project.override.prop" override="true" /></then></if>
</then>
</if>
<if><available file="${druphing.build_dir.name}properties/project.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.build_dir.name}properties/project.prop" override="true" /></then></if>
<if><available file="${druphing.build_dir.name}properties/project.override.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.build_dir.name}properties/project.override.prop" override="true" /></then></if>
<!-- repo -->
<if>
<not>
<equals arg1="${druphing.base_path}" arg2="" />
</not>
<then>
<if><available file="${druphing.base_path}build/properties/repo.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.base_path}build/properties/repo.prop" /></then></if>
<if><available file="${druphing.base_path}build/properties/repo.override.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.base_path}build/properties/repo.override.prop" override="true" /></then></if>
</then>
</if>
<if><available file="${druphing.build_dir.name}properties/repo.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.build_dir.name}properties/repo.prop" override="true" /></then></if>
<if><available file="${druphing.build_dir.name}properties/repo.override.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.build_dir.name}properties/repo.override.prop" override="true" /></then></if>
<!-- jmeter -->
<if>
<not>
<equals arg1="${druphing.base_path}" arg2="" />
</not>
<then>
<if><available file="${druphing.base_path}build/properties/jmeter.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.base_path}build/properties/jmeter.prop" /></then></if>
<if><available file="${druphing.base_path}build/properties/jmeter.override.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.base_path}build/properties/jmeter.override.prop" override="true" /></then></if>
</then>
</if>
<if><available file="${druphing.build_dir.name}properties/jmeter.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.build_dir.name}properties/jmeter.prop" override="true" /></then></if>
<if><available file="${druphing.build_dir.name}properties/jmeter.override.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.build_dir.name}properties/jmeter.override.prop" override="true" /></then></if>
<!-- slack -->
<if>
<not>
<equals arg1="${druphing.base_path}" arg2="" />
</not>
<then>
<if><available file="${druphing.base_path}build/properties/slack.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.base_path}build/properties/slack.prop" /></then></if>
<if><available file="${druphing.base_path}build/properties/slack.override.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.base_path}build/properties/slack.override.prop" override="true" /></then></if>
</then>
</if>
<if><available file="${druphing.build_dir.name}properties/slack.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.build_dir.name}properties/slack.prop" override="true" /></then></if>
<if><available file="${druphing.build_dir.name}properties/slack.override.prop" property="file_exists" /><then><property logoutput="false" file="${druphing.build_dir.name}properties/slack.override.prop" override="true" /></then></if>
<if>
<available file="${project.make.prop}" property="file_exists" />
<then>
<property logoutput="false" file="${project.make.prop}" />
</then>
</if>
</project>