From 72b5e1c28e820a31c93361de0e78514b84a04e1a Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Thu, 23 Apr 2020 13:53:59 -0400 Subject: [PATCH] Add parameter for extra Phing startup command. --- build.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.xml b/build.xml index dcc95145416..bd744d74425 100644 --- a/build.xml +++ b/build.xml @@ -8,6 +8,7 @@ <property name="apachectl" value="false" /><!-- set to apachectl path to spin up Apache instance --> <property name="seleniumjar" value="false" /><!-- set to Selenium jar path to spin up Selenium instance --> <!-- command for extra cleanup during shutdown; e.g. to change cache ownership after testing w/ Apache so deletion won't fail: --> + <property name="extra_startup_command" value="false" /> <property name="extra_shutdown_cleanup" value="false" /> <property name="vufindurl" value="http://localhost/vufind" /> <property name="vufinddb" value="vufind_test" /> @@ -254,6 +255,14 @@ <!-- Install and Activate VuFind --> <target name="startup" description="install and activate demo"> + <!-- run extra cleanup action, if any --> + <if> + <istrue value="${extra_startup_command}" /> + <then> + <exec command="VUFIND_HOME=${srcdir} VUFIND_LOCAL_DIR=${srcdir}/local ${extra_startup_command}" /> + </then> + </if> + <!-- set up appropriate read/write permissions for Apache --> <exec command="chmod -R a+w ${srcdir}/local/cache" /> -- GitLab