src-trl/build.xml
author Carlos Romero <carlos.romero@openbravo.com>
Tue, 06 Nov 2007 08:33:31 +0000
changeset 0 0247c26f10c6
child 41 5e565c858353
permissions -rw-r--r--
Modified PostgreSQL post script in order to include C_DEBT_PAYMENT_GENERATE modification tules
carlos@0
     1
<?xml version="1.0" encoding="UTF-8" ?>
carlos@0
     2
<!--
carlos@0
     3
 *************************************************************************
carlos@0
     4
 * The contents of this file are subject to the Openbravo  Public  License
carlos@0
     5
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
carlos@0
     6
 * Version 1.1  with a permitted attribution clause; you may not  use this
carlos@0
     7
 * file except in compliance with the License. You  may  obtain  a copy of
carlos@0
     8
 * the License at http://www.openbravo.com/legal/license.html 
carlos@0
     9
 * Software distributed under the License  is  distributed  on  an "AS IS"
carlos@0
    10
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
carlos@0
    11
 * License for the specific  language  governing  rights  and  limitations
carlos@0
    12
 * under the License. 
carlos@0
    13
 * The Original Code is Openbravo ERP. 
carlos@0
    14
 * The Initial Developer of the Original Code is Openbravo SL 
carlos@0
    15
 * All portions are Copyright (C) 2001-2006 Openbravo SL 
carlos@0
    16
 * All Rights Reserved. 
carlos@0
    17
 * Contributor(s):  ______________________________________.
carlos@0
    18
 ************************************************************************
carlos@0
    19
-->
carlos@0
    20
<project default="compile" basedir="." name="openbravo-trl">
carlos@0
    21
  <property name="build.trl" value="${basedir}/build/classes"/>
carlos@0
    22
  <property name="build.trl.docs" value="${basedir}/docs"/>
carlos@0
    23
  <property name="build.trl.sqlc" value="${basedir}/build/javasqlc"/>
carlos@0
    24
  <property name="build.trl.src" value="${basedir}/src"/>
carlos@0
    25
 
carlos@0
    26
  <path id="trl.class.path">
carlos@0
    27
    <pathelement path="../src-core/build/classes"/>
carlos@0
    28
    <fileset dir="${build.trl.lib}">
carlos@0
    29
      <include name="**/*.jar"/>
carlos@0
    30
    </fileset>
carlos@0
    31
  </path>   
carlos@0
    32
carlos@0
    33
  <target name="init">
carlos@0
    34
    <mkdir dir="${build.trl}"/>
carlos@0
    35
    <mkdir dir="${build.trl.sqlc}"/>
carlos@0
    36
    <mkdir dir="${build.trl.docs}"/>
carlos@0
    37
  </target>
carlos@0
    38
  
carlos@0
    39
  <target name="clean">
carlos@0
    40
    <delete dir="${build.trl}" failonerror="false" includeemptydirs="true"/>
carlos@0
    41
    <delete dir="${build.trl.docs}" failonerror="false" includeemptydirs="true"/>
carlos@0
    42
    <delete dir="${build.trl.sqlc}" failonerror="false" includeemptydirs="true"/>
carlos@0
    43
    <delete failonerror="false" file="${build.trl.lib}/openbravo-trl.jar"/>
carlos@0
    44
  </target>
carlos@0
    45
carlos@0
    46
  <target name="sqlc" depends="init">
carlos@0
    47
    <java classname="org.openbravo.data.Sqlc" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
carlos@0
    48
      <arg line="${base.config}/dbCon5.xml .xsql ./src ${build.trl.sqlc}"/>
carlos@0
    49
      <classpath refid="trl.class.path"/>
carlos@0
    50
    </java>
carlos@0
    51
  </target>
carlos@0
    52
carlos@0
    53
  <target name="compileSqlc" depends="sqlc">
carlos@0
    54
    <javac srcdir="${build.trl.sqlc}/src" destdir="${build.trl}" encoding="UTF-8" debug="${debug.level}">
carlos@0
    55
      <classpath refid="trl.class.path"/>
carlos@0
    56
    </javac>
carlos@0
    57
  </target>
carlos@0
    58
carlos@0
    59
  <target name="compile" depends="clean, compileSqlc">
carlos@0
    60
    <javac srcdir="${build.trl.src}" destdir="${build.trl}" deprecation="on" encoding="UTF-8" debug="${debug.level}">
carlos@0
    61
      <classpath refid="trl.class.path"/>  
carlos@0
    62
    </javac>
carlos@0
    63
  </target>
carlos@0
    64
carlos@0
    65
  <target name="build.jar">
carlos@0
    66
    <jar destfile="${build.trl.lib}/openbravo-trl.jar">
carlos@0
    67
      <fileset dir="${build.trl}"/>
carlos@0
    68
      <manifest>
carlos@0
    69
        <attribute name="Built-By" value="Openbravo S.L."/>
carlos@0
    70
        <!--section name="common/class1.class">
carlos@0
    71
          <attribute name="Sealed" value="false"/>
carlos@0
    72
        </section-->
carlos@0
    73
      </manifest>
carlos@0
    74
    </jar>
carlos@0
    75
  </target>
carlos@0
    76
 
carlos@0
    77
  <target name="build" depends="compile, doc, build.jar">
carlos@0
    78
  </target>
carlos@0
    79
  
carlos@0
    80
  <target name="doc" depends="init" description="Generate api">
carlos@0
    81
    <javadoc packagenames="org.openbravo.*" 
carlos@0
    82
           sourcepath="${build.trl.sqlc}/src:${build.trl.src}"
carlos@0
    83
           destdir="${build.trl.docs}"
carlos@0
    84
           author="true"
carlos@0
    85
           version="true"
carlos@0
    86
           use="true"
carlos@0
    87
           docencoding="UTF-8"
carlos@0
    88
           encoding="UTF-8"
carlos@0
    89
           failonerror="false"
carlos@0
    90
           windowtitle="${ant.project.name}">
carlos@0
    91
      <classpath refid="trl.class.path"/>
carlos@0
    92
    </javadoc>
carlos@0
    93
  </target>
carlos@0
    94
</project>