src-core/build.xml
changeset 0 0247c26f10c6
child 206 40bee6d93a42
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src-core/build.xml	Tue Nov 06 08:33:31 2007 +0000
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+************************************************************************************
+* Copyright (C) 2001-2006 Openbravo S.L.
+* Licensed under the Apache Software License version 2.0
+* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+* Unless required by applicable law or agreed to  in writing,  software  distributed
+* under the License is distributed  on  an  "AS IS"  BASIS,  WITHOUT  WARRANTIES  OR
+* CONDITIONS OF ANY KIND, either  express  or  implied.  See  the  License  for  the
+* specific language governing permissions and limitations under the License.
+************************************************************************************
+-->
+<project default="compile" basedir="." name="openbravo-core">
+  <property name="build.core" value="${basedir}/build/classes"/>
+  <property name="build.core.docs" value="${basedir}/docs"/>
+  <property name="build.core.src" value="${basedir}/src"/>
+ 
+  <path id="core.class.path">
+    <fileset dir="${build.core.lib}">
+      <include name="**/*.jar"/>
+    </fileset>
+  </path>   
+    
+  <target name="init">
+    <mkdir dir="${build.core}"/>
+    <mkdir dir="${build.core.docs}"/>
+  </target>
+
+  <target name="clean">
+    <delete dir="${build.core}" failonerror="false" includeemptydirs="true"/>
+    <delete dir="${build.core.docs}" failonerror="false" includeemptydirs="true"/>
+    <delete failonerror="false" file="${build.core.lib}/openbravo-core.jar"/>
+  </target>
+
+  <target name="compile" depends="clean, init">
+    <javac srcdir="${build.core.src}" destdir="${build.core}" deprecation="on" encoding="UTF-8" debug="${debug.level}">
+      <classpath refid="core.class.path"/>  
+    </javac>
+  </target>
+
+  <target name="build.jar">
+    <jar destfile="${build.core.lib}/openbravo-core.jar">
+      <fileset dir="${build.core}"/>
+      <manifest>
+        <attribute name="Built-By" value="Openbravo S.L."/>
+          <!--section name="common/class1.class">
+          <attribute name="Sealed" value="false"/>
+        </section-->
+      </manifest>
+    </jar> 
+  </target>
+
+  <target name="build" depends="compile, doc, build.jar">
+  </target>
+
+<target name="doc" depends="init" description="Generate api">
+  <javadoc packagenames="org.openbravo.*" 
+    sourcepath="${build.core.src}"
+    destdir="${build.core.docs}"
+    author="true"
+    version="true"
+    use="true"
+    docencoding="UTF-8"
+    encoding="UTF-8"
+    failonerror="false"
+    windowtitle="${ant.project.name}">
+    <classpath refid="core.class.path"/>
+  </javadoc>
+</target>
+</project>