src-db/build.xml
author RM packaging bot <staff.rm@openbravo.com>
Fri, 18 Sep 2015 16:37:57 +0000
changeset 27602 9f3453d4f213
parent 27152 749f6786ae20
permissions -rw-r--r--
CI: update AD_MODULE to version 27601
carlos@0
     1
<?xml version="1.0" encoding="UTF-8" ?>
carlos@0
     2
<!--
carlos@0
     3
************************************************************************************
stefan@27152
     4
* Copyright (C) 2001-2015 Openbravo S.L.U.
carlos@0
     5
* Licensed under the Apache Software License version 2.0
carlos@0
     6
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
carlos@0
     7
* Unless required by applicable law or agreed to  in writing,  software  distributed
carlos@0
     8
* under the License is distributed  on  an  "AS IS"  BASIS,  WITHOUT  WARRANTIES  OR
carlos@0
     9
* CONDITIONS OF ANY KIND, either  express  or  implied.  See  the  License  for  the
carlos@0
    10
* specific language governing permissions and limitations under the License.
carlos@0
    11
************************************************************************************
carlos@0
    12
-->
adrian@359
    13
<project default="jar" basedir="." name="dbmanager">
carlos@0
    14
martin@2869
    15
  <property name="build.db.classes" value="${basedir}/build/classes" />
martin@2869
    16
  <property name="build.db.lib" value="${basedir}/build/lib" />
martin@2869
    17
  <property name="build.db.src" value="${basedir}/src" />
martin@2869
    18
martin@2869
    19
  <path id="db.class.path">
martin@2869
    20
    <fileset dir="${basedir}/database/lib">
martin@2869
    21
      <include name="**/*.jar" />
martin@2869
    22
    </fileset>
martin@2869
    23
  </path>
juanpablo@213
    24
martin@2869
    25
  <target name="clean">
martin@2869
    26
    <delete dir="${build.db.classes}" failonerror="false" includeemptydirs="true" />
martin@2869
    27
    <delete dir="${build.db.lib}" failonerror="false" includeemptydirs="true" />
martin@2869
    28
  </target>
carlos@0
    29
stefan@27152
    30
  <target name="compile">
stefan@27152
    31
    <mkdir dir="${build.db.classes}" />
stefan@27152
    32
    <mkdir dir="${build.db.lib}" />
stefan@11995
    33
    <javac srcdir="${build.db.src}" destdir="${build.db.classes}" deprecation="on" encoding="UTF-8" fork="true" debug="true" debuglevel="lines,vars,source" includeantruntime="false">
martin@2869
    34
      <classpath refid="db.class.path" />
martin@2869
    35
    </javac>
martin@2869
    36
    <copy todir="${build.db.classes}">
martin@2869
    37
      <fileset dir="${build.db.src}" excludes="**/*.java,**/*.form" />
martin@2869
    38
    </copy>
martin@2869
    39
  </target>
carlos@0
    40
stefan@27152
    41
  <target name="jar" depends="compile">
martin@2869
    42
    <jar destfile="${build.db.lib}/dbmanager.jar">
martin@2869
    43
      <fileset dir="${build.db.classes}" />
martin@2869
    44
      <manifest>
ggi@6701
    45
        <attribute name="Built-By" value="Openbravo S.L.U." />
martin@2869
    46
      </manifest>
martin@2869
    47
    </jar>
martin@2869
    48
  </target>
carlos@0
    49
carlos@0
    50
</project>