]> source.dussan.org Git - poi.git/commitdiff
no message
authorGlen Stampoultzis <glens@apache.org>
Wed, 9 Apr 2003 08:48:42 +0000 (08:48 +0000)
committerGlen Stampoultzis <glens@apache.org>
Wed, 9 Apr 2003 08:48:42 +0000 (08:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/BUILD_BRANCH@353046 13f79535-47bb-0310-9956-ffa450edef68

newbuild.xml
src/java/org/apache/poi/hssf/record/DatRecord.java

index 4f811b945b8d9874acb320be660938d22c0a415c..673517896f6fa6bc2455f04b309cac26ccea99ed 100644 (file)
@@ -1,7 +1,28 @@
 <?xml version="1.0"?>
 
+<!--
+    In order to build this project you need Ant 1.4 or higher.  The following
+    optional jar files should be installed into the ant lib directory:
+
+    LIBRARY         LOCATION
+    =======         ========
+    junit           TODO
+    xerces
+    jdepend
+
+
+    TO BE COMPLETED:
+
+    * Fix logo's in site build.
+    * Add gump build
+    * Add jar target
+ -->
 <project name="POI Build" default="compile" basedir=".">
 
+    <description>
+        The POI project Ant build.
+    </description>
+
     <property environment="env"/>
 
     <property name="repository" value="http://www.ibiblio.org/maven"/>
         <echo file="${contrib.testokfile}" append="false" message="testok"/>
     </target>
 
-    <target name="docs" depends="init" description="Builds the POI website">
+    <target name="-check-docs">
+        <uptodate property="main.docs.notRequired" targetfile="${build.site}/index.html" >
+            <srcfiles dir= "${main.documentation}"/>
+        </uptodate>
+    </target>
+
+    <target name="docs" depends="init,-check-docs" unless="main.docs.notRequired"
+        description="Builds the POI website">
         <ant antfile="${forrest.home}/forrest.antproxy.xml" target="site">
             <property name="project.home" value="${basedir}"/>
         </ant>
     </target>
 
-    <target name="reports" depends="test" description="Creates junit,jdepend and javadoc reports">
+    <!-- Checks whether reports are required to be run.  If nothing has changed then they dont. -->
+    <target name="-check-reports">
+        <condition property="reports.notRequired">
+            <and>
+                <equals arg1="${main.test.notRequired}" arg2="true"/>
+                <equals arg1="${scratchpad.test.notRequired}" arg2="true"/>
+                <equals arg1="${contrib.test.notRequired}" arg2="true"/>
+            </and>
+        </condition>
+    </target>
+
+    <target name="reports" depends="test,-check-reports" unless="reports.notRequired"
+        description="Creates junit,jdepend and javadoc reports">
         <junitreport todir="${junit.report.dir}">
             <fileset dir="${main.reports.test}">
                 <include name="TEST-*.xml"/>
         </javadoc>
     </target>
 
-    <target name="site" depends="docs,reports" description="generate the documentation and reports"/>
+    <target name="site" depends="docs,reports"
+        description="generate the documentation and reports"/>
 
-    <target name="dist" depends="compile,site" >
+    <target name="jar" depends="compile" description="Creates jar files for distribution">
         <jar basedir="${main.output.dir}" destfile="${dist.dir}/${jar.name}-${version.id}.jar"/>
         <jar basedir="${contrib.output.dir}" destfile="${dist.dir}/${jar.name}-contrib-${version.id}.jar"/>
         <jar basedir="${scratchpad.output.dir}" destfile="${dist.dir}/${jar.name}-scratchpad-${version.id}.jar"/>
+    </target>
+
+    <target name="dist" depends="clean,compile,site,jar" description="Creates the entire distribution into build/dist">
 
         <zip destfile="${dist.dir}/${jar.name}-bin-${version.id}.zip">
             <zipfileset dir="${build.site}" prefix="docs" />
index 7b15a23d377ffed08f516bf4f9c67599243d721a..15dec8b55567ed5f903e2632aa7fc6188c39d48f 100644 (file)
@@ -70,6 +70,7 @@ import org.apache.poi.util.*;
 public class DatRecord
     extends Record
 {
+
     public final static short      sid                             = 0x1063;
     private  short      field_1_options;
     private  BitField   horizontalBorder                            = new BitField(0x1);