Skip to content

Commit

Permalink
Add missing set-site functionality during install.
Browse files Browse the repository at this point in the history
  • Loading branch information
becw committed Oct 15, 2021
1 parent d38843d commit 69ddacf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions targets/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@
</filterchain>
</copy>

<!-- Set up the drupal.site.* properties the way that the set-site target usually
does, so that we can use them below. -->
<property name="build.site" value="default" />
<!-- Copy defaults in first. -->
<copyproperties fromPrefix="drupal.sites._defaults" toPrefix="drupal.site" override="true" />
<!-- Override defaults with any site-specific values. -->
<copyproperties fromPrefix="drupal.sites.${build.site}" toPrefix="drupal.site" override="true" />

<!-- If the drupal.root directory doesn't exist, then we need to move it from the other location (web /
docroot). -->
<available file="${build.dir}/${drupal.root}" type="dir" property="drupal.root.exists" value="true" />
Expand Down

0 comments on commit 69ddacf

Please sign in to comment.