From: <tk...@hy...> - 2008-03-31 07:32:54
|
Author: tkeeney Date: 2008-03-31 00:32:48 -0700 (Mon, 31 Mar 2008) New Revision: 8599 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=8599 Modified: trunk/build_util/dbsetup-build.xml Log: Don't delete the HQ dump file within 'dbsetup-init' target. Otherwise, invoking Ant 'all' will delete the dump file. This file should only be deleted when doing a dbsetup for the unit test database. Modified: trunk/build_util/dbsetup-build.xml =================================================================== --- trunk/build_util/dbsetup-build.xml 2008-03-31 07:30:29 UTC (rev 8598) +++ trunk/build_util/dbsetup-build.xml 2008-03-31 07:32:48 UTC (rev 8599) @@ -4,10 +4,6 @@ <!-- ==================== DBSetup ==================== --> <target name="dbsetup-init" depends="init-taskdefs" unless="dbsetup-init.isLoaded"> - - <!-- this file is used for hqdb data dump during test framework execution --> - <delete file="${hq.home}/unittest/data/hqdb.dump.xml.gz" /> - <switch value="${hq.server.ds-mapping}"> <case value="Oracle8"> <echo>dbsetup-init: Oracle8</echo> @@ -180,6 +176,9 @@ <!-- DBSetup target for unittest framework --> <target name="test-dbsetup"> + <!-- this file is used for hqdb data dump during test framework execution --> + <delete file="${hq.home}/unittest/data/hqdb.dump.xml.gz" /> + <property name="unittest-lib" location="${hq.home}/unittest/lib" /> <echo message="using unittest.lib as -> ${unittest-lib}"/> <antcall target="dbsetup"> |