src/buildAD.xml
author Stefan Hühner <stefan.huehner@openbravo.com>
Tue, 13 Oct 2009 10:18:40 +0200
changeset 5227 98441eb82542
parent 2868 353de8982dab
child 6702 690d2af86089
permissions -rw-r--r--
Fixed 4038: Improve SqlC performance at compile time
- Include optional parameters in SqlC query execution at compile time as this
leads to better performance in many cases
- This requires the optional parameters to be valid parts of an SQL statement
- New behavior can be configured via new Openbravo.properties setting:
sqlc.queryExecutionStrategy=traditional,optimized
- Enable optimizedby default (in template and when new setting is missing)
- Enable for processing src/ folder. Disable by default for srcAD/ and modules/
to not impose stricter requirements on modules.
carlos@0
     1
<?xml version="1.0" encoding="ISO-8859-1" ?>
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@1337
    15
 * All portions are Copyright (C) 2001-2008 Openbravo SL 
carlos@0
    16
 * All Rights Reserved. 
carlos@0
    17
 * Contributor(s):  ______________________________________.
carlos@0
    18
 ************************************************************************
carlos@0
    19
-->
carlos@0
    20
carlos@0
    21
<project name="openbravo" default="buildAD" basedir=".">
martin@2868
    22
  <property environment="env" />
martin@2868
    23
  <property name="separator" value="/" />
martin@2868
    24
carlos@0
    25
  <target name="buildAD">
martin@2868
    26
    <java classname="org.openbravo.data.Sqlc" fork="yes" jvm="${env.JAVA_HOME}/bin/java" maxmemory="${build.maxmemory}">
martin@2868
    27
      <arg line="'${base.config}'/Openbravo.properties .xsql ../srcAD '${build.sqlc}'/src" />
stefan@5227
    28
      <jvmarg value="-Dsqlc.queryExecutionStrategy=traditional"/>
martin@2868
    29
      <classpath refid="project.class.path" />
carlos@0
    30
    </java>
carlos@0
    31
carlos@0
    32
  </target>
carlos@0
    33
</project>