forked from acquia/blt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproperties.xml
35 lines (27 loc) · 1.68 KB
/
properties.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
<project name="properties" default="build">
<!-- Define the repo root as a property, and resolve to an absolute file path. -->
<property name="repo.root.relative" value="${core.phing.dir}/../../.."/>
<resolvepath propertyName="repo.root" file="${repo.root.relative}"/>
<!-- Load the root project.yml file for this project. -->
<property file="${repo.root}/project.yml" override="true"/>
<!-- Load the local project.local.yml file for this project. -->
<!--@todo Change this so that it is only loaded for local:* targets. -->
<if>
<available file="${repo.root}/project.local.yml" type="file" property="local.properties"/>
<then>
<property file="${repo.root}/project.local.yml" override="true"/>
</then>
</if>
<!-- Load file directory and binary locations. -->
<property file="${core.phing.dir}/build.yml" override="true"/>
<!-- Extract PHP variable values from local.settings.php. -->
<property name="local.settings.file" value="${docroot}/sites/${multisite.name}/settings/local.settings.php" />
<copy file="${docroot}/sites/${multisite.name}/settings/default.local.settings.php" tofile="${local.settings.file}" overwrite="false" verbose="true"/>
<echo>Executing commands against multisite "${multisite.name}"</echo>
<echo>Using settings file ${local.settings.file}</echo>
<!-- Extracts value of $options['uri'] and outputs to local_url property in Phing. -->
<phpVariable file="${repo.root}/drush/drushrc.php" variable="options[uri]" outputProperty="local_url" />
<!-- Default drush alias. -->
<property name="drush.default_alias" value="self" override="false" />
<property name="drush.alias" value="${drush.default_alias}" override="false" />
</project>