This repository was archived by the owner on Mar 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 394
/
Copy pathbuild.xml
83 lines (63 loc) · 2.86 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
<project name="blt-core" default="list" phingVersion="2.8.2">
<!-- Include custom task classes -->
<includepath classpath="${core.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="${core.phing.dir}/tasks/properties.xml"/>
<!-- Contains BLT tasks. -->
<import file="${core.phing.dir}/tasks/blt.xml"/>
<!-- Contains Continuous Integration tasks. -->
<import file="${core.phing.dir}/tasks/ci.xml"/>
<!-- Contains tasks relevant to validation. E.g., code metrics. -->
<import file="${core.phing.dir}/tasks/validate.xml"/>
<!-- Contains targets relevant to the execution of tests. E.g., Behat, jMeter. -->
<import file="${core.phing.dir}/tasks/tests.xml"/>
<!-- Contains targets used for setting up environment. E.g., installing Drupal. -->
<import file="${core.phing.dir}/tasks/setup.xml"/>
<!-- Contains fileset definitions. E.g., patterns defining contrib locations, theming files, etc. -->
<import file="${core.phing.dir}/tasks/filesets.xml"/>
<!-- E.g., commit build artifacts, push to remote. -->
<import file="${core.phing.dir}/tasks/deploy.xml"/>
<!-- Contains frontend tasks. -->
<import file="${core.phing.dir}/tasks/frontend.xml"/>
<!-- Contains local syncing tasks. -->
<import file="${core.phing.dir}/tasks/local-sync.xml"/>
<!-- Contains acsf tasks. -->
<import file="${core.phing.dir}/tasks/acsf.xml"/>
<!-- Contains Drupal VM tasks. -->
<import file="${core.phing.dir}/tasks/vm.xml"/>
<target name="list" hidden="true">
<exec dir="${repo.root}" command="./blt.sh -q -l" passthru="true"/>
</target>
<target name="task:execute">
<fail unless="task-name"/>
<if>
<available property="${tasks.${task-name}.command}" />
<then>
<if>
<available file="${tasks.${task-name}.dir}" type="dir" property="taskDirExists" />
<then>
<exec dir="${hooks.${task-name}.dir}" command="${scripts.${task-name}.command}" logoutput="true" checkreturn="true" />
</then>
<else>
<fail>The directory ${scripts.${task-name}.dir} does not exist. Will not run command for ${task-name}.</fail>
</else>
</if>
</then>
<else>
<echo>No commands are defined for ${task-name}. Skipping.</echo>
</else>
</if>
</target>
</project>