src-db/build.xml
author Eduardo Argal Guibert <eduardo.argal@openbravo.com>
Sat, 03 Apr 2010 14:02:00 +0200
changeset 6916 bbc68a0afe71
parent 6701 690d2af86089
child 7533 24cd5a49d2c5
permissions -rw-r--r--
Validations for document types+ docbase types + identifier for financial account acct
carlos@0
     1
<?xml version="1.0" encoding="UTF-8" ?>
carlos@0
     2
<!--
carlos@0
     3
************************************************************************************
ggi@6701
     4
* Copyright (C) 2001-2006 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.docs" value="${basedir}/docs" />
martin@2869
    18
  <property name="build.db.src" value="${basedir}/src" />
martin@2869
    19
martin@2869
    20
  <path id="db.class.path">
martin@2869
    21
    <fileset dir="${basedir}/database/lib">
martin@2869
    22
      <include name="**/*.jar" />
martin@2869
    23
    </fileset>
jordi@1711
    24
    <fileset dir="${base.lib}">
martin@2869
    25
      <include name="**/*.jar" />
jordi@1711
    26
    </fileset>
martin@2869
    27
  </path>
juanpablo@213
    28
martin@2869
    29
  <target name="init">
martin@2869
    30
    <mkdir dir="${build.db.classes}" />
martin@2869
    31
    <mkdir dir="${build.db.lib}" />
martin@2869
    32
    <mkdir dir="${build.db.docs}" />
martin@2869
    33
  </target>
carlos@0
    34
martin@2869
    35
  <target name="clean">
martin@2869
    36
    <delete dir="${build.db.classes}" failonerror="false" includeemptydirs="true" />
martin@2869
    37
    <delete dir="${build.db.lib}" failonerror="false" includeemptydirs="true" />
martin@2869
    38
    <delete dir="${build.db.docs}" failonerror="false" includeemptydirs="true" />
martin@2869
    39
  </target>
carlos@0
    40
asier@2995
    41
  <target name="compile" depends="init">
martin@2869
    42
    <javac srcdir="${build.db.src}" destdir="${build.db.classes}" deprecation="on" encoding="UTF-8" debug="true" debuglevel="lines,vars,source">
martin@2869
    43
      <classpath refid="db.class.path" />
martin@2869
    44
    </javac>
martin@2869
    45
    <copy todir="${build.db.classes}">
martin@2869
    46
      <fileset dir="${build.db.src}" excludes="**/*.java,**/*.form" />
martin@2869
    47
    </copy>
martin@2869
    48
  </target>
carlos@0
    49
martin@2869
    50
  <target name="build.jar">
martin@2869
    51
    <jar destfile="${build.db.lib}/dbmanager.jar">
martin@2869
    52
      <fileset dir="${build.db.classes}" />
martin@2869
    53
      <manifest>
ggi@6701
    54
        <attribute name="Built-By" value="Openbravo S.L.U." />
martin@2869
    55
      </manifest>
martin@2869
    56
    </jar>
martin@2869
    57
  </target>
carlos@0
    58
carlos@0
    59
martin@2869
    60
  <target name="doc" depends="init" description="Generate api">
martin@2869
    61
    <javadoc packagenames="com.openbravo.*" sourcepath="${build.db.src}" destdir="${build.db.docs}" author="true" version="true" use="true" docencoding="UTF-8" encoding="UTF-8" failonerror="false" windowtitle="${ant.project.name}">
martin@2869
    62
      <classpath refid="db.class.path" />
martin@2869
    63
    </javadoc>
martin@2869
    64
  </target>
carlos@0
    65
martin@2869
    66
  <target name="jar" depends="compile, build.jar">
martin@2869
    67
  </target>
carlos@0
    68
martin@2869
    69
  <target name="build" depends="jar, doc">
martin@2869
    70
  </target>
carlos@0
    71
carlos@0
    72
</project>