author Asier Lostalé <>
Thu, 04 Sep 2014 10:55:15 +0200
changeset 25199 052f7ae68918
parent 11995 e7b20e55553e
child 30516 7240dd41e2d7
permissions -rw-r--r--
[tomcat7] adapted code to be compilable using both servlet 2.5 and 3.0 APIs

Request and Response wrappers have been changed so now they exntend the standard
API wrappers which implement all methods in any case
<?xml version="1.0" encoding="UTF-8" ?>
* Copyright (C) 2001-2014 Openbravo S.L.U.
* Licensed under the Apache Software License version 2.0
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to  in writing,  software  distributed
* under the License is distributed  on  an  "AS IS"  BASIS,  WITHOUT  WARRANTIES  OR
* CONDITIONS OF ANY KIND, either  express  or  implied.  See  the  License  for  the
* specific language governing permissions and limitations under the License.

List of targets:

init: creates all the needed folders.
clean: removes all the files and folders.
compile: compile the java files of the project.
build.jar: generates the jar file in the lib folder.
build: compile the project and generates the jar and doc.
doc: generates the api for the project.
<project default="compile" basedir="." name="openbravo-core">
  <property name="build.core" value="${basedir}/build/classes"/>
  <property name="" value="${basedir}/docs"/>
  <property name="build.core.src" value="${basedir}/src"/>

  <path id="core.class.path">
  <fileset dir="${base.lib}">
      <include name="**/*.jar"/>

  <target name="init">
    <mkdir dir="${build.core}"/>
    <mkdir dir="${}"/>

  <target name="clean">
    <delete dir="${build.core}" failonerror="false" includeemptydirs="true"/>
    <delete dir="${}" failonerror="false" includeemptydirs="true"/>
    <delete failonerror="false" file="${build.core.lib}/openbravo-core.jar"/>

  <target name="compile" depends="init">
    <javac srcdir="${build.core.src}" destdir="${build.core}" fork="true" deprecation="off" encoding="UTF-8" debug="true" debuglevel="lines,vars,source" includeantruntime="false">
      <classpath refid="core.class.path"/>  

  <target name="build.jar">
    <jar destfile="${build.core.lib}/openbravo-core.jar">
      <fileset dir="${build.core}"/>
        <attribute name="Built-By" value="Openbravo S.L.U."/>
        <!--section name="common/class1.class">
        <attribute name="Sealed" value="false"/>

<target name="build" depends="compile, build.jar">

<target name="doc" depends="init" description="Generate api">
  <javadoc packagenames="org.openbravo.*" 
    <classpath refid="core.class.path"/>