author RM packaging bot <>
Thu, 02 Jul 2020 12:49:49 +0000
changeset 37466 1611c51ef2ae
parent 35226 4afbb3dfd15d
permissions -rw-r--r--
CI: update AD_MODULE to version 37465
<?xml version="1.0" encoding="UTF-8" ?>
* The contents of this file are subject to the Openbravo  Public  License
* Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
* Version 1.1  with a permitted attribution clause; you may not  use this
* file except in compliance with the License. You  may  obtain  a copy of
* the License at
* Software distributed under the License  is  distributed  on  an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific  language  governing  rights  and  limitations
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo SLU
* All portions are Copyright (C) 2008-2011 Openbravo SLU
* All Rights Reserved.
* Contributor(s):  ______________________________________.
<project name="openbravo-diagnostics-build" basedir="." default="build">

  <path id="diagnostic.class.path">
    <fileset dir="../../lib/">
      <include name="**/*.jar" />

  <target name="build" depends="clean">
    <copy todir="WebContent/WEB-INF/lib">
      <fileset dir="../../lib/runtime">
        <include name="**/*.jar" />
    <javac srcdir="src" destdir="build/classes" encoding="UTF-8" debug="true" debuglevel="lines,vars,source" deprecation="on">
      <classpath refid="diagnostic.class.path" />

  <target name="clean">
    <delete failonerror="false">
      <fileset dir="WebContent/WEB-INF/lib" />
      <fileset dir="build/classes" />
    <mkdir dir="WebContent/WEB-INF/lib" />
    <mkdir dir="build/classes" />
    <copy file="../../config/" todir="config" failonerror="false" />
    <copy todir="WebContent/WEB-INF">
      <fileset dir="config" />

  <target name="war">
    <delete failonerror="false" file="lib/OpenbravoDiagnostics.war" />
    <war compress="true" destfile="OpenbravoDiagnostics.war" encoding="UTF-8" webxml="WebContent/WEB-INF/web.xml">
      <zipfileset dir="WebContent">
        <exclude name="**/WEB-INF/web.xml" />
        <exclude name="**/WEB-INF/lib/servlet-api.jar" />
      <classes dir="build/classes" />