src-util/diagnostic/build-create.xml
changeset 6907 60a98816806d
parent 6702 690d2af86089
child 9085 79e55dfc8af0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src-util/diagnostic/build-create.xml	Tue Mar 30 13:18:54 2010 +0200
@@ -0,0 +1,62 @@
+<?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 http://www.openbravo.com/legal/license.html
+* 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" />
+    </fileset>
+  </path>
+
+  <target name="build" depends="clean">
+    <copy todir="WebContent/WEB-INF/lib">
+      <fileset dir="../../lib/runtime">
+        <include name="**/*.jar" />
+      </fileset>
+    </copy>
+    <javac srcdir="src" destdir="build/classes" encoding="UTF-8" debug="true" debuglevel="lines,vars,source" deprecation="on">
+      <classpath refid="diagnostic.class.path" />
+    </javac>
+  </target>
+
+  <target name="clean">
+    <delete failonerror="false">
+      <fileset dir="WebContent/WEB-INF/lib" />
+      <fileset dir="build/classes" />
+    </delete>
+    <mkdir dir="WebContent/WEB-INF/lib" />
+    <mkdir dir="build/classes" />
+    <copy file="../../config/Openbravo.properties" todir="config" failonerror="false" />
+    <copy todir="WebContent/WEB-INF">
+      <fileset dir="config" />
+    </copy>
+  </target>
+
+  <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" />
+      </zipfileset>
+      <classes dir="build/classes" />
+    </war>
+  </target>
+</project>