build-test.xml
author Asier Lostalé <asier.lostale@openbravo.com>
Wed, 27 May 2015 14:58:33 +0200
changeset 602 d5d21a543e48
parent 288 035e0c1d81c2
permissions -rw-r--r--
fixed bug 30016: upgrading from 2.50 to pi some FKs are missing

There were 2 scenarios where this occurred:
* FKs from recreated to non recreated tables in case none of them are in AD
* both tables participating in the FK are recreated and the referenced one
is loaded before the referencing one in the model
<?xml version="1.0" encoding="UTF-8" ?>
<!--
************************************************************************************
* Copyright (C) 2001-2008 Openbravo S.L.U.
* Licensed under the Apache Software License version 2.0
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to  in writing,  software  distributed
* under the License is distributed  on  an  "AS IS"  BASIS,  WITHOUT  WARRANTIES  OR
* CONDITIONS OF ANY KIND, either  express  or  implied.  See  the  License  for  the
* specific language governing permissions and limitations under the License.
************************************************************************************
-->
<project default="check" basedir="." name="build-test">

  <property file="dbsm.properties" />
  <property file="checkAPI.properties"/>
  <property file="${pathOB}/config/Openbravo.properties"/>

  <path id="db.class.path">
    <fileset dir="${basedir}/build/lib">
      <include name="**/*.jar" />
    </fileset>
    <fileset dir="${basedir}/lib">
      <include name="**/*.jar" />
    </fileset>
    <pathelement path="${pathOB}/build/classes/" />
    <fileset dir="${pathOB}/lib">
      <include name="**/*.jar" />
    </fileset>
    <fileset dir="${pathOB}/src-db/database/lib/">
      <include name="**/*.jar" />
    </fileset>
  </path>

  <taskdef name="checkAPI" classname="org.openbravo.ddlutils.task.CheckAPI">
    <classpath refid="db.class.path" />
  </taskdef>
  
  <condition property="bbdd.owner.url" value="${bbdd.url}/${bbdd.sid}" else="${bbdd.url}">
    <and>
      <equals arg1="${bbdd.rdbms}" arg2="POSTGRE" />
    </and>
  </condition>
  
  <target name="check">
    <checkAPI driver="${bbdd.driver}" 
              url="${bbdd.owner.url}" 
              user="${bbdd.user}" 
              password="${bbdd.password}" 
              stableDBdir="${stableDBdir}"
              testDBdir="${testDBdir}"
              verbosity="${bbdd.verbosity}"
              userId="0" 
              propertiesFile="${pathOB}/config/Openbravo.properties"/>

  </target>

</project>