poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1602846 - in /poi/trunk/osgi: ./ build.xml bundle.info lib/
Date Mon, 16 Jun 2014 11:15:31 GMT
Author: nick
Date: Mon Jun 16 11:15:31 2014
New Revision: 1602846

URL: http://svn.apache.org/r1602846
Make a start on an Ant task to generate an OSGi jar, for #53866

    poi/trunk/osgi/lib/   (with props)

Added: poi/trunk/osgi/build.xml
URL: http://svn.apache.org/viewvc/poi/trunk/osgi/build.xml?rev=1602846&view=auto
--- poi/trunk/osgi/build.xml (added)
+++ poi/trunk/osgi/build.xml Mon Jun 16 11:15:31 2014
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+<!-- POI OSGi Bundle System -->
+<project name="POI OSGi Bundle" default="bundle" basedir=".." xmlns:mvn="antlib:org.apache.maven.artifact.ant">
+    <description>The Apache POI OSGi Bundle System.</description>
+    <property name="bundle.lib" location="osgi/lib"/>
+    <!-- TODO Import these from the parent build file -->
+    <property name="repository.m2" value="http://repo1.maven.org"/>
+    <property name="version.id" value="3.11-beta1"/>
+    <property name="dist.dir" value="build/dist"/>
+    <!-- jars in the /lib directory, see the fetch-bundle-jars target-->
+    <property name="bundle.bnd.jar" location="${bundle.lib}/bnd-1.50.0.jar"/>
+    <property name="bundle.bnd.url" value="${repository.m2}/maven2/biz/aQute/bnd/1.50.0/bnd-1.50.0.jar"/>
+    <import file="../build.xml"/>
+    <target name="check-bundle-jars">
+       <condition property="jars.bundle.present">
+           <available file="${bundle.bnd.jar}"/>
+       </condition>
+    </target>
+    <target name="fetch-bundle-jars" unless="jars.bundle.present">
+        <mkdir dir="${bundle.lib}"/>
+        <antcall target="downloadfile">
+            <param name="sourcefile" value="${bundle.bnd.url}"/>
+            <param name="destfile" value="${bundle.bnd.jar}"/>
+        </antcall>
+    </target>
+    <target name="bundle" depends="init, check-bundle-jars, fetch-bundle-jars, jar">
+    <target name="bundle" depends="init, check-bundle-jars, fetch-bundle-jars">
+        <taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="${bundle.bnd.jar}"/>
+        <mkdir dir="build/osgi"/>
+        <bnd 
+           classpath="${dist.dir}/poi-${version.id}-${DSTAMP}.jar,${dist.dir}/poi-scratchpad-${version.id}-${DSTAMP}.jar,${dist.dir}/poi-ooxml-${version.id}-${DSTAMP}.jar"
+           eclipse="false" 
+           failok="false" 
+           exceptions="true" 
+           output="build/osgi"
+           files="test.bnd"/> 
+        <!-- TODO Include the settings from http://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/poi-3.9/pom.xml
+        <!-- TODO Make this actually spit out an OSGi Jar -->
+    </target>

Added: poi/trunk/osgi/bundle.info
URL: http://svn.apache.org/viewvc/poi/trunk/osgi/bundle.info?rev=1602846&view=auto
--- poi/trunk/osgi/bundle.info (added)
+++ poi/trunk/osgi/bundle.info Mon Jun 16 11:15:31 2014
@@ -0,0 +1,38 @@
+    ${project.description}
+    Original Maven URLs:
+        \u001B[33mmvn:${pkgGroupId}/poi/${pkgVersion}\u001B[0m
+        \u001B[33mmvn:${pkgGroupId}/poi-ooxml/${pkgVersion}\u001B[0m
+        \u001B[33mmvn:${pkgGroupId}/poi-scratchpad/${pkgVersion}\u001B[0m
+    The Apache POI Project's mission is to create and maintain Java APIs for manipulating
various file formats based
+    upon the Office Open XML standards (OOXML) and Microsoft's OLE 2 Compound Document format
(OLE2). In short, you can
+    read and write MS Excel files using Java. In addition, you can read and write MS Word
and MS PowerPoint files using
+    Java. Apache POI is your Java Excel solution (for Excel 97-2008). We have a complete
API for porting other OOXML and
+    OLE2 formats and welcome others to participate.
+    OLE2 files include most Microsoft Office files such as XLS, DOC, and PPT as well as MFC
serialization API based file
+    formats. The project provides APIs for the OLE2 Filesystem (POIFS) and OLE2 Document
Properties (HPSF).
+    Office OpenXML Format is the new standards based XML file format found in Microsoft Office
2007 and 2008. This
+    includes XLSX, DOCX and PPTX. The project provides a low level API to support the Open
Packaging Conventions using
+    openxml4j.
+    For each MS Office application there exists a component module that attempts to provide
a common high level Java api
+    to both OLE2 and OOXML document formats. This is most developed for Excel workbooks (SS=HSSF+XSSF).
Work is
+    progressing for Word documents (HWPF+XWPF) and PowerPoint presentations (HSLF+XSLF).
+    The project has recently added support for Outlook (HSMF). Microsoft opened the specifications
to this format in
+    October 2007. We would welcome contributions.
+    There are also projects for Visio (HDGF), TNEF (HMEF), and Publisher (HPBF).
+    As a general policy we collaborate as much as possible with other projects to provide
this functionality.
+    Examples include: Cocoon for which there are serializers for HSSF; Open Office.org with
whom we collaborate in
+    documenting the XLS format; and Tika / Lucene, for which we provide format interpretors.
+    When practical, we donate components directly to those projects for POI-enabling them.
+\u001B[1mSEE ALSO\u001B[0m
+    \u001B[36mhttp://poi.apache.org/\u001B[0m

Propchange: poi/trunk/osgi/lib/
--- svn:ignore (added)
+++ svn:ignore Mon Jun 16 11:15:31 2014
@@ -0,0 +1 @@

To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org

View raw message