Skip to content
Snippets Groups Projects
Commit 72b5e1c2 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Add parameter for extra Phing startup command.

parent 30f06985
Branches
Tags
No related merge requests found
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<property name="apachectl" value="false" /><!-- set to apachectl path to spin up Apache instance --> <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 --> <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: --> <!-- 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="extra_shutdown_cleanup" value="false" />
<property name="vufindurl" value="http://localhost/vufind" /> <property name="vufindurl" value="http://localhost/vufind" />
<property name="vufinddb" value="vufind_test" /> <property name="vufinddb" value="vufind_test" />
...@@ -254,6 +255,14 @@ ...@@ -254,6 +255,14 @@
<!-- Install and Activate VuFind --> <!-- Install and Activate VuFind -->
<target name="startup" description="install and activate demo"> <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 --> <!-- set up appropriate read/write permissions for Apache -->
<exec command="chmod -R a+w ${srcdir}/local/cache" /> <exec command="chmod -R a+w ${srcdir}/local/cache" />
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment