src-core/build.xml
author Augusto Mauch <augusto.mauch@openbravo.com>
Tue, 18 Mar 2014 17:23:09 +0100
changeset 22729 05acae86769b
parent 11995 e7b20e55553e
child 25333 052f7ae68918
permissions -rw-r--r--
Fixes issue 25558: Fixes callout of manual forms

The code that applies the response of the manual forms callout was taking for granted that there one only one frame called appFrame. This was true in Openbravo 2.50, but in Openbravo 3.0 many manual windows can be opened at the same time, so there may be several frames called appFrame in one given moment.

This has been fixed by storing the active manual frame (the one whose tab is focused), and using that frame when applying the response of the callout.
carlos@0
     1
<?xml version="1.0" encoding="UTF-8" ?>
carlos@0
     2
<!--
carlos@0
     3
************************************************************************************
ggi@6702
     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
************************************************************************************
juanpablo@213
    12
-->
juanpablo@213
    13
juanpablo@213
    14
<!--
juanpablo@213
    15
List of targets:
juanpablo@213
    16
juanpablo@213
    17
init: creates all the needed folders.
juanpablo@213
    18
clean: removes all the files and folders.
juanpablo@213
    19
compile: compile the java files of the project.
juanpablo@213
    20
build.jar: generates the jar file in the lib folder.
juanpablo@213
    21
build: compile the project and generates the jar and doc.
juanpablo@213
    22
doc: generates the api for the project.
carlos@0
    23
-->
carlos@0
    24
<project default="compile" basedir="." name="openbravo-core">
carlos@0
    25
  <property name="build.core" value="${basedir}/build/classes"/>
carlos@0
    26
  <property name="build.core.docs" value="${basedir}/docs"/>
carlos@0
    27
  <property name="build.core.src" value="${basedir}/src"/>
juanpablo@213
    28
carlos@0
    29
  <path id="core.class.path">
jordi@1711
    30
  <fileset dir="${base.lib}">
carlos@0
    31
      <include name="**/*.jar"/>
carlos@0
    32
    </fileset>
juanpablo@213
    33
  </path>
juanpablo@213
    34
carlos@0
    35
  <target name="init">
carlos@0
    36
    <mkdir dir="${build.core}"/>
carlos@0
    37
    <mkdir dir="${build.core.docs}"/>
carlos@0
    38
  </target>
carlos@0
    39
carlos@0
    40
  <target name="clean">
carlos@0
    41
    <delete dir="${build.core}" failonerror="false" includeemptydirs="true"/>
carlos@0
    42
    <delete dir="${build.core.docs}" failonerror="false" includeemptydirs="true"/>
carlos@0
    43
    <delete failonerror="false" file="${build.core.lib}/openbravo-core.jar"/>
carlos@0
    44
  </target>
carlos@0
    45
martin@2870
    46
  <target name="compile" depends="init">
stefan@11995
    47
    <javac srcdir="${build.core.src}" destdir="${build.core}" fork="true" deprecation="on" encoding="UTF-8" debug="true" debuglevel="lines,vars,source" includeantruntime="false">
carlos@0
    48
      <classpath refid="core.class.path"/>  
carlos@0
    49
    </javac>
carlos@0
    50
  </target>
carlos@0
    51
carlos@0
    52
  <target name="build.jar">
carlos@0
    53
    <jar destfile="${build.core.lib}/openbravo-core.jar">
carlos@0
    54
      <fileset dir="${build.core}"/>
carlos@0
    55
      <manifest>
ggi@6702
    56
        <attribute name="Built-By" value="Openbravo S.L.U."/>
juanpablo@213
    57
        <!--section name="common/class1.class">
juanpablo@213
    58
        <attribute name="Sealed" value="false"/>
juanpablo@213
    59
      </section-->
juanpablo@213
    60
    </manifest>
juanpablo@213
    61
  </jar> 
juanpablo@213
    62
</target>
carlos@0
    63
martin@2870
    64
<target name="build" depends="compile, build.jar">
juanpablo@213
    65
</target>
carlos@0
    66
carlos@0
    67
<target name="doc" depends="init" description="Generate api">
carlos@0
    68
  <javadoc packagenames="org.openbravo.*" 
carlos@0
    69
    sourcepath="${build.core.src}"
carlos@0
    70
    destdir="${build.core.docs}"
carlos@0
    71
    author="true"
carlos@0
    72
    version="true"
carlos@0
    73
    use="true"
carlos@0
    74
    docencoding="UTF-8"
carlos@0
    75
    encoding="UTF-8"
carlos@0
    76
    failonerror="false"
carlos@0
    77
    windowtitle="${ant.project.name}">
carlos@0
    78
    <classpath refid="core.class.path"/>
carlos@0
    79
  </javadoc>
carlos@0
    80
</target>
carlos@0
    81
</project>