forked from acquia/blt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
94 lines (75 loc) · 3.36 KB
/
build.xml
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
<project name="blt" default="list" phingVersion="2.8.2">
<!-- Include custom task classes -->
<includepath classpath="${phing.dir}" />
<taskdef name="behat" classname="phingcludes.BehatTask"/>
<taskdef name="drush" classname="phingcludes.DrushTask"/>
<taskdef name="filterFileListByFileSet" classname="phingcludes.FilterFileListByFileSetTask"/>
<taskdef name="phpVariable" classname="phingcludes.PhpVariableTask"/>
<if>
<available property="xdebug.enabled" extension="xdebug"/>
<then>
<echo level="warning">You are running BLT with xdebug enabled. This has a major impact on runtime performance.</echo>
</then>
</if>
<!-- Include task partials -->
<!-- Defines a list of default properties, available to all targets. -->
<import file="${phing.dir}/tasks/properties.xml"/>
<!-- Allow custom file to be imported. -->
<if>
<isset property="import" />
<then>
<echo>Importing custom Phing file ${import}.</echo>
<import file="${import}"/>
</then>
<else>
<echo>No custom Phing file specified.</echo>
</else>
</if>
<!-- Contains BLT tasks. -->
<import file="${phing.dir}/tasks/blt.xml"/>
<!-- Contains Continuous Integration tasks. -->
<import file="${phing.dir}/tasks/ci.xml"/>
<!-- Contains tasks relevant to validation. E.g., code metrics. -->
<import file="${phing.dir}/tasks/validate.xml"/>
<!-- Contains targets relevant to the execution of tests. E.g., Behat, jMeter. -->
<import file="${phing.dir}/tasks/tests.xml"/>
<!-- Contains targets used for setting up environment. E.g., installing Drupal. -->
<import file="${phing.dir}/tasks/setup.xml"/>
<!-- Contains fileset definitions. E.g., patterns defining contrib locations, theming files, etc. -->
<import file="${phing.dir}/tasks/filesets.xml"/>
<!-- E.g., commit build artifacts, push to remote. -->
<import file="${phing.dir}/tasks/deploy.xml"/>
<!-- Contains frontend tasks. -->
<import file="${phing.dir}/tasks/frontend.xml"/>
<!-- Contains local syncing tasks. -->
<import file="${phing.dir}/tasks/local-sync.xml"/>
<!-- Contains acsf tasks. -->
<import file="${phing.dir}/tasks/acsf.xml"/>
<!-- Contains Drupal VM tasks. -->
<import file="${phing.dir}/tasks/vm.xml"/>
<target name="list" hidden="true">
<exec dir="${blt.root}" command="${repo.root}/vendor/bin/phing -f ${phing.dir}/build.xml -q -l" passthru="true"/>
</target>
<target name="target-hook:invoke" description="Executes a command defined in the target-hooks array.">
<fail unless="hook-name"/>
<if>
<isset property="target-hooks.${hook-name}.command"/>
<then>
<if>
<available file="${target-hooks.${hook-name}.dir}" type="dir" property="dirExists" />
<then>
<echo>Executing command in ${target-hooks.${hook-name}.dir}:</echo>
<echo>${target-hooks.${hook-name}.command}</echo>
<exec dir="${target-hooks.${hook-name}.dir}" command="${target-hooks.${hook-name}.command}" logoutput="true" checkreturn="true" level="info" passthru="true" />
</then>
<else>
<fail>The directory ${target-hooks.${hook-name}.dir} does not exist. Will not run command for ${hook-name}.</fail>
</else>
</if>
</then>
<else>
<echo>No commands are defined for ${hook-name}. Skipping.</echo>
</else>
</if>
</target>
</project>