From 4bce8dfcd0b14e64c852390e07ccb5cce7d84e8d Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Mon, 21 Jan 2008 18:00:30 +0000 Subject: [PATCH] [ooxml-branch] Split the common ss interfaces into two sets - one that works with jdk 1.5 and has the full functionality, and another that works with jdk 1.4 and only has dummy functionality. Update build.xml to spit out two versions of the main classes, one for jdk 1.5 with the full interfaces, and one for jdk 1.4 with the dummy ones (but which is otherwise like the current behaviour). Also add readme explaining all this git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@613951 13f79535-47bb-0310-9956-ffa450edef68 --- build.xml | 46 ++++++++++++++++--- src/ooxml/README.interfaces | 44 ++++++++++++++++++ .../org/apache/poi/ss/usermodel/Cell.java | 20 ++++++++ .../apache/poi/ss/usermodel/CellStyle.java | 20 ++++++++ .../org/apache/poi/ss/usermodel/Color.java | 20 ++++++++ .../org/apache/poi/ss/usermodel/Comment.java | 20 ++++++++ .../apache/poi/ss/usermodel/DataFormat.java | 20 ++++++++ .../org/apache/poi/ss/usermodel/Font.java | 20 ++++++++ .../org/apache/poi/ss/usermodel/Footer.java | 20 ++++++++ .../org/apache/poi/ss/usermodel/Header.java | 20 ++++++++ .../org/apache/poi/ss/usermodel/Name.java | 20 ++++++++ .../org/apache/poi/ss/usermodel/Palette.java | 20 ++++++++ .../apache/poi/ss/usermodel/Patriarch.java | 20 ++++++++ .../apache/poi/ss/usermodel/PrintSetup.java | 20 ++++++++ .../poi/ss/usermodel/RichTextString.java | 20 ++++++++ .../org/apache/poi/ss/usermodel/Row.java | 20 ++++++++ .../poi/ss/usermodel/SharedStringSource.java | 20 ++++++++ .../org/apache/poi/ss/usermodel/Sheet.java | 20 ++++++++ .../org/apache/poi/ss/usermodel/Textbox.java | 20 ++++++++ .../org/apache/poi/ss/usermodel/Workbook.java | 20 ++++++++ .../org/apache/poi/ss/usermodel/Cell.java | 0 .../apache/poi/ss/usermodel/CellStyle.java | 0 .../org/apache/poi/ss/usermodel/Color.java | 0 .../org/apache/poi/ss/usermodel/Comment.java | 0 .../apache/poi/ss/usermodel/DataFormat.java | 0 .../org/apache/poi/ss/usermodel/Font.java | 0 .../org/apache/poi/ss/usermodel/Footer.java | 0 .../org/apache/poi/ss/usermodel/Header.java | 0 .../org/apache/poi/ss/usermodel/Name.java | 0 .../org/apache/poi/ss/usermodel/Palette.java | 0 .../apache/poi/ss/usermodel/Patriarch.java | 0 .../apache/poi/ss/usermodel/PrintSetup.java | 0 .../poi/ss/usermodel/RichTextString.java | 0 .../org/apache/poi/ss/usermodel/Row.java | 0 .../poi/ss/usermodel/SharedStringSource.java | 0 .../org/apache/poi/ss/usermodel/Sheet.java | 19 +------- .../org/apache/poi/ss/usermodel/Textbox.java | 0 .../org/apache/poi/ss/usermodel/Workbook.java | 0 38 files changed, 445 insertions(+), 24 deletions(-) create mode 100644 src/ooxml/README.interfaces create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Cell.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/CellStyle.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Color.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Comment.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/DataFormat.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Font.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Footer.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Header.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Name.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Palette.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Patriarch.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/PrintSetup.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/RichTextString.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Row.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/SharedStringSource.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Sheet.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Textbox.java create mode 100644 src/ooxml/interfaces-jdk14/org/apache/poi/ss/usermodel/Workbook.java rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/Cell.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/CellStyle.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/Color.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/Comment.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/DataFormat.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/Font.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/Footer.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/Header.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/Name.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/Palette.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/Patriarch.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/PrintSetup.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/RichTextString.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/Row.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/SharedStringSource.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/Sheet.java (95%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/Textbox.java (100%) rename src/ooxml/{java => interfaces-jdk15}/org/apache/poi/ss/usermodel/Workbook.java (100%) diff --git a/build.xml b/build.xml index 2a490c08dd..f2921c19ed 100644 --- a/build.xml +++ b/build.xml @@ -45,6 +45,9 @@ under the License. To build the documentation you will need to install forrest and set the FORREST_HOME environment variable. Forrest 0.5.1 required. + You will need JDK 1.5 or newer to build much of POI. If all you want + is the core OLE2 support, then you only need JDK 1.4 + TO BE COMPLETED: @@ -68,6 +71,7 @@ under the License. + @@ -120,6 +124,10 @@ under the License. + + + + @@ -161,18 +169,30 @@ under the License. - - + + + + + + + + + @@ -260,6 +280,7 @@ under the License. + @@ -386,8 +407,8 @@ under the License. - @@ -395,8 +416,9 @@ under the License. + failonerror="true" destdir="${main.output.dir}" debug="on" fork="yes"> + + + + + + + + + + + + +