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