Skip to content
Snippets Groups Projects
Commit c1084ada authored by Martin Czygan's avatar Martin Czygan
Browse files

Add 'extra_shutdown_cleanup' property.

parent 02e0f555
No related merge requests found
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
<property name="composerdir" value="${srcdir}/vendor/bin" /> <property name="composerdir" value="${srcdir}/vendor/bin" />
<property name="apacheconfdir" value="/etc/apache2/conf.d" /> <property name="apacheconfdir" value="/etc/apache2/conf.d" />
<property name="nodepath" value="" /><!-- set to node.js modules path to use Zombie.js testing --> <property name="nodepath" value="" /><!-- set to node.js modules path to use Zombie.js testing -->
<!-- command for extra cleanup during shutdown; e.g. to change cache ownership after testing w/ Apache so deletion won't fail: -->
<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" />
<property name="vufinddbuser" value="vufindtest" /> <property name="vufinddbuser" value="vufindtest" />
...@@ -196,6 +198,14 @@ ...@@ -196,6 +198,14 @@
<exec command="VUFIND_HOME=${srcdir} VUFIND_LOCAL_DIR=${srcdir}/local JETTY_PID=${srcdir}/local/vufindtest.pid ${srcdir}/vufind.sh stop" outputProperty="LASTOUTPUT" /> <exec command="VUFIND_HOME=${srcdir} VUFIND_LOCAL_DIR=${srcdir}/local JETTY_PID=${srcdir}/local/vufindtest.pid ${srcdir}/vufind.sh stop" outputProperty="LASTOUTPUT" />
<echo message="${LASTOUTPUT}" /> <echo message="${LASTOUTPUT}" />
<!-- run extra cleanup action, if any -->
<if>
<istrue value="${extra_shutdown_cleanup}" />
<then>
<exec command="VUFIND_HOME=${srcdir} VUFIND_LOCAL_DIR=${srcdir}/local ${extra_shutdown_cleanup}" />
</then>
</if>
<!-- delete the configuration, sample index, logs and cache data --> <!-- delete the configuration, sample index, logs and cache data -->
<delete dir="${srcdir}/solr/alphabetical_browse" includeemptydirs="true" failonerror="true" /> <delete dir="${srcdir}/solr/alphabetical_browse" includeemptydirs="true" failonerror="true" />
<delete dir="${srcdir}/solr/authority/index" includeemptydirs="true" failonerror="true" /> <delete dir="${srcdir}/solr/authority/index" includeemptydirs="true" failonerror="true" />
......
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