Skip to content

Commit

Permalink
added new module
Browse files Browse the repository at this point in the history
  • Loading branch information
Auba21 committed Jan 10, 2023
1 parent 0aefb99 commit a2dd9f4
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
2 changes: 2 additions & 0 deletions defaults/install/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@


<!-- Default target: list -->
<phingcall target="default-content" />

<target name="list" hidden="true">
<exec command="${phing.home}/bin/phing -q -f ${phing.file} -l" passthru="true"/>
<echo>Find more documentation for palantirnet/the-build on GitHub:
Expand Down
30 changes: 30 additions & 0 deletions defaults/install/default-content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!--
Target: default-content
Installs default content for testing the site.
-->
<target name="default-content" description="Creates default site content for non-Hubb data.">
<!-- Create demo content -->
<trycatch property="install">
<try>
<drush command="pm-enable" assume="yes">
<param>ioep23_default_content</param>
</drush>
</try>
<catch>
<echo>Content already imported.</echo>
</catch>
</trycatch>
<trycatch property="uninstall">
<try>
<!-- Uninstall the demo content modules -->
<drush command="pm-uninstall" assume="yes">
<param>ioep23_default_content</param>
<param>default_content</param>
</drush>
</try>
<catch>
<echo>Modules never enabled.</echo>
</catch>
</trycatch>
</target>
2 changes: 1 addition & 1 deletion patches/phing-relative-symlinks.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
diff --git a/classes/phing/tasks/ext/SymlinkTask.php b/classes/phing/tasks/ext/SymlinkTask.php
pwdiff --git a/classes/phing/tasks/ext/SymlinkTask.php b/classes/phing/tasks/ext/SymlinkTask.php
index f132b4f747..87844a0d09 100644
--- a/classes/phing/tasks/ext/SymlinkTask.php
+++ b/classes/phing/tasks/ext/SymlinkTask.php
Expand Down
11 changes: 11 additions & 0 deletions the-build.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"folders": [
{
"path": "."
},
{
"path": "../../../../../sites/ioep23/web/modules/custom/ioep23_default_content"
}
],
"settings": {}
}

0 comments on commit a2dd9f4

Please sign in to comment.