
<project name="testmodel-webapp-test" default="default" basedir="."
  xmlns:imtestsproj="http://www.intermine.org/ns/im-tests-proj/1">
  
  <description>build, test, package testmodel-webapp-test</description>
  
  <import file="../../../imbuild/tests.xml"/>
  <import file="../../../imbuild/task.xml"/>
  
  <target name="test" depends="-clear-dbs, tests.test"/>
  
  <target name="-clear-dbs" unless="no.test.init">
    <!--
      Build and init user-profile and unittest databases early, before building dependencies
      (so that objectstore summary reflects new database).
    -->
    <ant antfile="../../dbmodel/build.xml" target="insert-data-unittest" inheritAll="false"/>
    <ant antfile="../main/build.xml" target="build-db-userprofile" inheritAll="false"/>
  </target>
  
  <target name="redeploy-webapp">
    <ant antfile="../main/build.xml" target="remove-webapp" inheritAll="false"/>
    <ant antfile="../main/build.xml" target="release-webapp" inheritAll="false"/>
  </target>
  
  <target name="init-test" depends="tests.init-test, -copy-build-properties, redeploy-webapp"/>
  
  <target name="-copy-build-properties">
    <!-- need for the web unit tests to know where the webapp is -->
    <copy file="${user.home}/build.properties.testmodel-webapp"
          tofile="${build.test.resources.dir}/build.properties"/>
  </target>
  
</project>



<project name="testmodel-webapp-test" default="default" basedir="."
  xmlns:imtestsproj="http://www.intermine.org/ns/im-tests-proj/1">
  
  <description>build, test, package testmodel-webapp-test</description>
  
  <import file="../../../imbuild/tests.xml"/>
  <import file="../../../imbuild/task.xml"/>
  
  <target name="test" depends="-clear-dbs, tests.test"/>
  
  <target name="-clear-dbs" unless="no.test.init">
    <!--
      Build and init user-profile and unittest databases early, before building dependencies
      (so that objectstore summary reflects new database).
    -->
    <ant antfile="../../dbmodel/build.xml" target="insert-data-unittest" inheritAll="false"/>
    <ant antfile="../main/build.xml" target="build-db-userprofile" inheritAll="false"/>
  </target>
  
  <target name="redeploy-webapp">
    <ant antfile="../main/build.xml" target="remove-webapp" inheritAll="false"/>
    <ant antfile="../main/build.xml" target="release-webapp" inheritAll="false"/>
  </target>
  
  <target name="init-test" depends="tests.init-test, -copy-build-properties, redeploy-webapp"/>
  
  <target name="-copy-build-properties">
    <!-- need for the web unit tests to know where the webapp is -->
    <copy file="${user.home}/build.properties.testmodel"
          tofile="${build.test.resources.dir}/build.properties"/>
  </target>
  
</project>


Fix testmodel/webapp/test properties file name.
Fix testmodel/webapp/test properties file name.

