src-trl/build.xml
author Shankar Balachandran <shankar.balachandran@openbravo.com>
Mon, 26 Aug 2013 17:44:12 +0530
changeset 21018 b15fbad4f98e
parent 12996 bc639e86fe20
child 21974 5fe5e1c482f1
permissions -rw-r--r--
Fixes Issue 0024574: Filter is not working fine in some special cases

When list items are filtered by selecting the option from dropdown, the filter applied is filtering using contains. Hence if the filter is 'test A', 'test B A' will also be shown.
When selecting values, == is appended to each selected item to filter the exact value.
When showing picklist, == is trimmed from value so that the values are selected properly in the dropdown.
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
priya@9072
     5
 * Version  1.1  (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. 
ggi@6701
    14
 * The Initial Developer of the Original Code is Openbravo SLU 
gorka@12996
    15
 * All portions are Copyright (C) 2001-2011 Openbravo SLU 
carlos@0
    16
 * All Rights Reserved. 
carlos@0
    17
 * Contributor(s):  ______________________________________.
carlos@0
    18
 ************************************************************************
juanpablo@213
    19
-->
juanpablo@213
    20
<!--
juanpablo@213
    21
List of targets:
juanpablo@213
    22
juanpablo@213
    23
init: creates all the needed folders.
juanpablo@213
    24
clean: removes all the files and folders.
juanpablo@213
    25
sqlc: generates java files from xsql's files.
juanpablo@213
    26
compileSqlc: compile the java files generated from xsql's files.
juanpablo@213
    27
compile: compile the java files of the project.
juanpablo@213
    28
build.jar: generates the jar file in the lib folder.
juanpablo@213
    29
build: compile the project, including the xsql's files and generates the jar and doc.
juanpablo@213
    30
doc: generates the api for the project.
carlos@0
    31
-->
carlos@0
    32
<project default="compile" basedir="." name="openbravo-trl">
carlos@0
    33
  <property name="build.trl" value="${basedir}/build/classes"/>
carlos@0
    34
  <property name="build.trl.docs" value="${basedir}/docs"/>
carlos@0
    35
  <property name="build.trl.sqlc" value="${basedir}/build/javasqlc"/>
carlos@0
    36
  <property name="build.trl.src" value="${basedir}/src"/>
carlos@0
    37
 
carlos@0
    38
  <path id="trl.class.path">
carlos@0
    39
    <pathelement path="../src-core/build/classes"/>
jordi@1711
    40
    <fileset dir="${base.lib}">
jordi@1711
    41
     <include name="**/*.jar"/>
carlos@0
    42
    </fileset>
carlos@0
    43
  </path>   
carlos@0
    44
carlos@0
    45
  <target name="init">
carlos@0
    46
    <mkdir dir="${build.trl}"/>
carlos@0
    47
    <mkdir dir="${build.trl.sqlc}"/>
carlos@0
    48
    <mkdir dir="${build.trl.docs}"/>
carlos@0
    49
  </target>
carlos@0
    50
  
carlos@0
    51
  <target name="clean">
carlos@0
    52
    <delete dir="${build.trl}" failonerror="false" includeemptydirs="true"/>
carlos@0
    53
    <delete dir="${build.trl.docs}" failonerror="false" includeemptydirs="true"/>
carlos@0
    54
    <delete dir="${build.trl.sqlc}" failonerror="false" includeemptydirs="true"/>
carlos@0
    55
    <delete failonerror="false" file="${build.trl.lib}/openbravo-trl.jar"/>
carlos@0
    56
  </target>
carlos@0
    57
carlos@0
    58
  <target name="sqlc" depends="init">
carlos@0
    59
    <java classname="org.openbravo.data.Sqlc" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
carlos@1337
    60
      <arg line="'${base.config}'/Openbravo.properties .xsql ./src '${build.trl.sqlc}'"/>
carlos@0
    61
      <classpath refid="trl.class.path"/>
antonio@7580
    62
      <syspropertyset>
antonio@7580
    63
        <propertyref name="java.security.egd" />
antonio@7580
    64
      </syspropertyset>
carlos@0
    65
    </java>
carlos@0
    66
  </target>
carlos@0
    67
carlos@0
    68
  <target name="compileSqlc" depends="sqlc">
stefan@11995
    69
    <javac srcdir="${build.trl.sqlc}/src" destdir="${build.trl}" encoding="UTF-8" fork="true" debug="true" debuglevel="lines,vars,source" includeantruntime="false">
carlos@0
    70
      <classpath refid="trl.class.path"/>
carlos@0
    71
    </javac>
carlos@0
    72
  </target>
carlos@0
    73
martin@2870
    74
  <target name="compile" depends="compileSqlc">
stefan@11995
    75
    <javac srcdir="${build.trl.src}" destdir="${build.trl}" deprecation="on" fork="true" encoding="UTF-8" debug="true" debuglevel="lines,vars,source" includeantruntime="false">
carlos@0
    76
      <classpath refid="trl.class.path"/>  
carlos@0
    77
    </javac>
carlos@0
    78
  </target>
carlos@0
    79
carlos@0
    80
  <target name="build.jar">
carlos@0
    81
    <jar destfile="${build.trl.lib}/openbravo-trl.jar">
carlos@0
    82
      <fileset dir="${build.trl}"/>
carlos@0
    83
      <manifest>
ggi@6701
    84
        <attribute name="Built-By" value="Openbravo S.L.U."/>
carlos@0
    85
        <!--section name="common/class1.class">
carlos@0
    86
          <attribute name="Sealed" value="false"/>
carlos@0
    87
        </section-->
carlos@0
    88
      </manifest>
carlos@0
    89
    </jar>
carlos@0
    90
  </target>
carlos@0
    91
 
martin@2870
    92
  <target name="build" depends="compile, build.jar">
carlos@0
    93
  </target>
carlos@0
    94
  
carlos@0
    95
  <target name="doc" depends="init" description="Generate api">
carlos@0
    96
    <javadoc packagenames="org.openbravo.*" 
carlos@0
    97
           sourcepath="${build.trl.sqlc}/src:${build.trl.src}"
carlos@0
    98
           destdir="${build.trl.docs}"
carlos@0
    99
           author="true"
carlos@0
   100
           version="true"
carlos@0
   101
           use="true"
carlos@0
   102
           docencoding="UTF-8"
carlos@0
   103
           encoding="UTF-8"
carlos@0
   104
           failonerror="false"
carlos@0
   105
           windowtitle="${ant.project.name}">
carlos@0
   106
      <classpath refid="trl.class.path"/>
carlos@0
   107
    </javadoc>
carlos@0
   108
  </target>
carlos@0
   109
</project>