src-util/diagnostic/build-create.xml
changeset 6907 60a98816806d
parent 6702 690d2af86089
child 9085 79e55dfc8af0
equal deleted inserted replaced
6906:39596de39bca 6907:60a98816806d
       
     1 <?xml version="1.0" encoding="UTF-8" ?>
       
     2 <!--
       
     3 *************************************************************************
       
     4 * The contents of this file are subject to the Openbravo  Public  License
       
     5 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
       
     6 * Version 1.1  with a permitted attribution clause; you may not  use this
       
     7 * file except in compliance with the License. You  may  obtain  a copy of
       
     8 * the License at http://www.openbravo.com/legal/license.html
       
     9 * Software distributed under the License  is  distributed  on  an "AS IS"
       
    10 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
       
    11 * License for the specific  language  governing  rights  and  limitations
       
    12 * under the License.
       
    13 * The Original Code is Openbravo ERP.
       
    14 * The Initial Developer of the Original Code is Openbravo SLU
       
    15 * All portions are Copyright (C) 2008 Openbravo SLU
       
    16 * All Rights Reserved.
       
    17 * Contributor(s):  ______________________________________.
       
    18 ************************************************************************
       
    19 -->
       
    20 <project name="openbravo-diagnostics-build" basedir="." default="build">
       
    21 
       
    22   <path id="diagnostic.class.path">
       
    23     <fileset dir="WebContent/WEB-INF/lib">
       
    24       <include name="**/*.jar" />
       
    25     </fileset>
       
    26   </path>
       
    27 
       
    28   <target name="build" depends="clean">
       
    29     <copy todir="WebContent/WEB-INF/lib">
       
    30       <fileset dir="../../lib/runtime">
       
    31         <include name="**/*.jar" />
       
    32       </fileset>
       
    33     </copy>
       
    34     <javac srcdir="src" destdir="build/classes" encoding="UTF-8" debug="true" debuglevel="lines,vars,source" deprecation="on">
       
    35       <classpath refid="diagnostic.class.path" />
       
    36     </javac>
       
    37   </target>
       
    38 
       
    39   <target name="clean">
       
    40     <delete failonerror="false">
       
    41       <fileset dir="WebContent/WEB-INF/lib" />
       
    42       <fileset dir="build/classes" />
       
    43     </delete>
       
    44     <mkdir dir="WebContent/WEB-INF/lib" />
       
    45     <mkdir dir="build/classes" />
       
    46     <copy file="../../config/Openbravo.properties" todir="config" failonerror="false" />
       
    47     <copy todir="WebContent/WEB-INF">
       
    48       <fileset dir="config" />
       
    49     </copy>
       
    50   </target>
       
    51 
       
    52   <target name="war">
       
    53     <delete failonerror="false" file="lib/OpenbravoDiagnostics.war" />
       
    54     <war compress="true" destfile="OpenbravoDiagnostics.war" encoding="UTF-8" webxml="WebContent/WEB-INF/web.xml">
       
    55       <zipfileset dir="WebContent">
       
    56         <exclude name="**/WEB-INF/web.xml" />
       
    57         <exclude name="**/WEB-INF/lib/servlet-api.jar" />
       
    58       </zipfileset>
       
    59       <classes dir="build/classes" />
       
    60     </war>
       
    61   </target>
       
    62 </project>