author Stefan Hühner <>
Sun, 26 Mar 2017 14:21:58 +0200
changeset 935 7ba7847bffb2
parent 735 0a699d270609
permissions -rw-r--r--
[no dbmanager] remove call to dummy deprecated method setExcludedObjects

remove call to dummy stub method from main as it did nothing
<?xml version="1.0" encoding="UTF-8" ?>
* Copyright (C) 2001-2016 Openbravo S.L.U.
* Licensed under the Apache Software License version 2.0
* You may obtain a copy of the License at
* 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="jar" basedir="." name="dbsourcemanager">

  <property name="build.db.classes" value="${basedir}/build/classes" />
  <property name="build.db.lib" value="${basedir}/build/lib" />
  <property name="" value="${basedir}/docs" />
  <property name="build.db.src" value="${basedir}/src" />
  <property file="" />

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

  <target name="init">
    <mkdir dir="${build.db.classes}" />
    <mkdir dir="${build.db.lib}" />
    <mkdir dir="${}" />

  <target name="clean">
    <delete dir="${build.db.classes}" failonerror="false" includeemptydirs="true" />
    <delete dir="${build.db.lib}" failonerror="false" includeemptydirs="true" />
    <delete dir="${}" failonerror="false" includeemptydirs="true" />

  <target name="set.code.rev" depends="init">
    <exec executable="hg" outputproperty="" failifexecutionfails="false">
      <arg value="id"/>
      <arg value="-i"/>

   <fail message="couldn't get revision id">
         <isset property=""/>

   <fail message="there are local changes, jar will not be generated">
       <matches pattern="\+" string="${}"/>

   <echo message="${}" file="${build.db.classes}/"/>
  <target name="compile" depends="init">
    <javac srcdir="${build.db.src}" destdir="${build.db.classes}" deprecation="on" encoding="UTF-8" debug="true" debuglevel="lines,vars,source" includeantruntime="false" source="1.7" target="1.7">
      <classpath refid="db.class.path" />
    <copy todir="${build.db.classes}">
      <fileset dir="${build.db.src}" excludes="**/*.java,**/*.form" />

  <target name="build.jar" depends="set.code.rev">
    <jar destfile="${build.db.lib}/dbsourcemanager.jar">
      <fileset dir="${build.db.classes}" />
        <attribute name="Built-By" value="Openbravo S.L.U." />

  <target name="doc" depends="init" description="Generate api">
    <javadoc packagenames="*" sourcepath="${build.db.src}" destdir="${}" author="true" version="true" use="true" docencoding="UTF-8" encoding="UTF-8" failonerror="false" windowtitle="${}">
      <classpath refid="db.class.path" />

  <target name="jar" depends="compile, build.jar">

  <target name="build" depends="jar, doc">
  <target name="run.tests" depends="compile">
    <ant dir="src-test" target="run.tests" inheritAll="false" inheritRefs="false" useNativeBasedir="true"/>