author Gorka Gil <>
Fri, 12 Mar 2010 18:20:53 +0000
changeset 6702 690d2af86089
parent 2871 065884513f10
permissions -rw-r--r--
Change Openbravo S.L. for Openbravo S.L.U.
<?xml version="1.0" encoding="UTF-8" ?>
* The contents of this file are subject to the Openbravo  Public  License
* Version  1.0  (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 Openbravo SLU
* All Rights Reserved.
* Contributor(s):  ______________________________________.
<project name="openbravo-diagnostics-build" basedir="." default="build">

  <path id="diagnostic.class.path">
    <fileset dir="WebContent/WEB-INF/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" />