src-util/diagnostic/build-create.xml
author Antonio Moreno <antonio.moreno@openbravo.com>
Tue, 30 Mar 2010 19:20:38 +0200
changeset 6901 43a7191bdeb6
parent 6886 60a98816806d
child 9072 79e55dfc8af0
permissions -rw-r--r--
[validation] Corrected build.xml
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.
ggi@6701
    14
* The Initial Developer of the Original Code is Openbravo SLU
ggi@6701
    15
* All portions are Copyright (C) 2008 Openbravo SLU
asier@2001
    16
* All Rights Reserved.
asier@2001
    17
* Contributor(s):  ______________________________________.
asier@2001
    18
************************************************************************
asier@2001
    19
-->
asier@2004
    20
<project name="openbravo-diagnostics-build" basedir="." default="build">
asier@2001
    21
asier@2001
    22
  <path id="diagnostic.class.path">
asier@2001
    23
    <fileset dir="WebContent/WEB-INF/lib">
martin@2871
    24
      <include name="**/*.jar" />
asier@2001
    25
    </fileset>
asier@2001
    26
  </path>
martin@2871
    27
asier@2001
    28
  <target name="build" depends="clean">
martin@2871
    29
    <copy todir="WebContent/WEB-INF/lib">
antonio@6886
    30
      <fileset dir="../../lib/runtime">
martin@2871
    31
        <include name="**/*.jar" />
martin@2871
    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">
martin@2871
    35
      <classpath refid="diagnostic.class.path" />
martin@2871
    36
    </javac>
asier@2001
    37
  </target>
martin@2871
    38
asier@2001
    39
  <target name="clean">
asier@2008
    40
    <delete failonerror="false">
martin@2871
    41
      <fileset dir="WebContent/WEB-INF/lib" />
martin@2871
    42
      <fileset dir="build/classes" />
asier@2001
    43
    </delete>
martin@2871
    44
    <mkdir dir="WebContent/WEB-INF/lib" />
martin@2871
    45
    <mkdir dir="build/classes" />
antonio@6886
    46
    <copy file="../../config/Openbravo.properties" todir="config" failonerror="false" />
asier@2001
    47
    <copy todir="WebContent/WEB-INF">
martin@2871
    48
      <fileset dir="config" />
asier@2001
    49
    </copy>
asier@2001
    50
  </target>
martin@2871
    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>
martin@2871
    59
      <classes dir="build/classes" />
asier@2001
    60
    </war>
asier@2001
    61
  </target>
antonio@6886
    62
</project>