You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2017/08/15 06:01:06 UTC

svn commit: r1805055 - in /poi/site: publish/faq.html publish/index.html src/documentation/content/xdocs/faq.xml src/documentation/content/xdocs/index.xml

Author: centic
Date: Tue Aug 15 06:01:06 2017
New Revision: 1805055

URL: http://svn.apache.org/viewvc?rev=1805055&view=rev
Log:
Add news-entry and initial FAQ for Java 9

Modified:
    poi/site/publish/faq.html
    poi/site/publish/index.html
    poi/site/src/documentation/content/xdocs/faq.xml
    poi/site/src/documentation/content/xdocs/index.xml

Modified: poi/site/publish/faq.html
URL: http://svn.apache.org/viewvc/poi/site/publish/faq.html?rev=1805055&r1=1805054&r2=1805055&view=diff
==============================================================================
--- poi/site/publish/faq.html (original)
+++ poi/site/publish/faq.html Tue Aug 15 06:01:06 2017
@@ -375,6 +375,11 @@ if (VERSION > 3) {
       Can POI be used with OSGI?
     </a>
 </li>
+<li>
+<a name="faq-N102B0-menu"></a><a href="#faq-N102B0">
+            Can Apache POI be compiled/used with Java 9?
+        </a>
+</li>
 </ol>
 <a name="Answers"></a>
 <div class="h3">
@@ -1060,6 +1065,55 @@ and
     	
 </p>
 	
+<a name="faq-N102B0"></a>
+<div class="h4">
+<h4>23. 
+            Can Apache POI be compiled/used with Java 9?
+        <a title="Permanent link" class="headerlink" href="#faq-N102B0">#</a>
+</h4>
+</div>
+            
+<p>We did some work to verify that compilation with Java 9 is working and
+                that all unit-tests pass. So Apache POI should be ready to be used with
+                current Java 9 release candidates.
+            </p>
+            
+<p>NOTE: As Java 9 is still not finally released, there might
+                still be breaking changes introduced in the final release, use with care!
+            </p>
+            
+<p>For compiling Apache POI, you should set some additional options as follows
+                to open up some modules that are needed and to unset some compiler options
+                which are not supported any more.
+            </p>
+            
+<pre class="code">
+                # requires Ant &gt;= 1.9.5 due to https://bz.apache.org/bugzilla/show_bug.cgi?id=58271
+                export ANT_HOME=/opt/apache/apache-ant/apache-ant-1.9.7
+                export PATH=$ANT_HOME/bin:$PATH
+
+                export ANT_OPTS="-Xmx1524m \
+                    --add-modules=java.xml.bind \
+                    --add-opens=java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED \
+                    --add-opens=java.base/java.lang=ALL-UNNAMED"
+
+                ant  \
+                -Duser.language=en \
+                -Duser.country=US \
+                -Dmaxpermsize=-Dthis.is.a.dummy=true \
+                -Djava9addmods=--add-modules=java.xml.bind \
+                -Djavadoc9addmods=--add-modules=java.xml.bind \
+                -Djava9addmodsvalue=-Dsun.reflect.debugModuleAccessChecks=true \
+                -Djava9addopens1=--add-opens=java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED \
+                -Djava9addopens2=--add-opens=java.base/java.io=ALL-UNNAMED \
+                -Djava9addopens3=--add-opens=java.base/java.nio=ALL-UNNAMED \
+                -Djava9addopens4=--add-opens=java.base/java.lang=ALL-UNNAMED \
+                -Djava9addopens5=--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED \
+                -Djava.locale.providers=JRE,CLDR \
+                -Dcoverage.enabled=true \
+                test-all
+            </pre>
+        
 </div>
 </div>
 </div>

Modified: poi/site/publish/index.html
URL: http://svn.apache.org/viewvc/poi/site/publish/index.html?rev=1805055&r1=1805054&r2=1805055&view=diff
==============================================================================
--- poi/site/publish/index.html (original)
+++ poi/site/publish/index.html Tue Aug 15 06:01:06 2017
@@ -265,6 +265,19 @@ if (VERSION > 3) {
 <h3>Project News<a title="Permanent link" class="headerlink" href="#Project+News">#</a>
 </h3>
 </div>
+      
+<a name="15+August+2017+-+Initial+support+for+JDK+9"></a>
+<div class="h4">
+<h4>15 August 2017 - Initial support for JDK 9<a title="Permanent link" class="headerlink" href="#15+August+2017+-+Initial+support+for+JDK+9">#</a>
+</h4>
+</div>
+        
+<p>We did some work to verify that compilation with Java 9 is working and
+          that all unit-tests pass.
+        </p>
+        
+<p>See the details in the <a href="faq.html#faq-N102B0">FAQ entry</a>.</p>
+      
 
       
       
@@ -324,32 +337,6 @@ if (VERSION > 3) {
         </p>
       
 
-      
-<a name="16+March+2017+-+Google+Summer+of+Code"></a>
-<div class="h4">
-<h4>16 March 2017 - Google Summer of Code<a title="Permanent link" class="headerlink" href="#16+March+2017+-+Google+Summer+of+Code">#</a>
-</h4>
-</div>
-        
-<p>The Apache POI project is participating in Google Summer of Code as a project under the Apache Software Foundation. Pick an area of POI that you would like to see developed further and apply to be a GSoC Student. We will happily mentor individuals even if they are not ultimately enrolled as a GSoC Student by Google. <a href="https://community.apache.org/gsoc.html">Read more...</a>
-</p>
-      
-      
-      
-<a name="03+October+2016+-+The+Apache+POI+project+is+celebrating+its+15th+anniversary"></a>
-<div class="h4">
-<h4>03 October 2016 - The Apache POI project is celebrating its 15th anniversary<a title="Permanent link" class="headerlink" href="#03+October+2016+-+The+Apache+POI+project+is+celebrating+its+15th+anniversary">#</a>
-</h4>
-</div>
-       
-<p>
-        The Apache POI project is celebrating its 15th anniversary! On the 
-        28th of August 2001, the first 0.1 alpha version of POI was released. 
-        <a href="https://blogs.apache.org/foundation/entry/apache_poi_celebrates_15_years">Read the official announcement...</a>
-       
-</p>
-      
-
     
 
     

Modified: poi/site/src/documentation/content/xdocs/faq.xml
URL: http://svn.apache.org/viewvc/poi/site/src/documentation/content/xdocs/faq.xml?rev=1805055&r1=1805054&r2=1805055&view=diff
==============================================================================
--- poi/site/src/documentation/content/xdocs/faq.xml (original)
+++ poi/site/src/documentation/content/xdocs/faq.xml Tue Aug 15 06:01:06 2017
@@ -594,4 +594,48 @@ and
     	</p>
 	</answer>
   </faq>
+    <faq>
+        <question>
+            Can Apache POI be compiled/used with Java 9?
+        </question>
+        <answer>
+            <p>We did some work to verify that compilation with Java 9 is working and
+                that all unit-tests pass. So Apache POI should be ready to be used with
+                current Java 9 release candidates.
+            </p>
+            <p>NOTE: As Java 9 is still not finally released, there might
+                still be breaking changes introduced in the final release, use with care!
+            </p>
+            <p>For compiling Apache POI, you should set some additional options as follows
+                to open up some modules that are needed and to unset some compiler options
+                which are not supported any more.
+            </p>
+            <source>
+                # requires Ant >= 1.9.5 due to https://bz.apache.org/bugzilla/show_bug.cgi?id=58271
+                export ANT_HOME=/opt/apache/apache-ant/apache-ant-1.9.7
+                export PATH=$ANT_HOME/bin:$PATH
+
+                export ANT_OPTS="-Xmx1524m \
+                    --add-modules=java.xml.bind \
+                    --add-opens=java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED \
+                    --add-opens=java.base/java.lang=ALL-UNNAMED"
+
+                ant  \
+                -Duser.language=en \
+                -Duser.country=US \
+                -Dmaxpermsize=-Dthis.is.a.dummy=true \
+                -Djava9addmods=--add-modules=java.xml.bind \
+                -Djavadoc9addmods=--add-modules=java.xml.bind \
+                -Djava9addmodsvalue=-Dsun.reflect.debugModuleAccessChecks=true \
+                -Djava9addopens1=--add-opens=java.xml/com.sun.org.apache.xerces.internal.util=ALL-UNNAMED \
+                -Djava9addopens2=--add-opens=java.base/java.io=ALL-UNNAMED \
+                -Djava9addopens3=--add-opens=java.base/java.nio=ALL-UNNAMED \
+                -Djava9addopens4=--add-opens=java.base/java.lang=ALL-UNNAMED \
+                -Djava9addopens5=--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED \
+                -Djava.locale.providers=JRE,CLDR \
+                -Dcoverage.enabled=true \
+                test-all
+            </source>
+        </answer>
+    </faq>
 </faqs>

Modified: poi/site/src/documentation/content/xdocs/index.xml
URL: http://svn.apache.org/viewvc/poi/site/src/documentation/content/xdocs/index.xml?rev=1805055&r1=1805054&r2=1805055&view=diff
==============================================================================
--- poi/site/src/documentation/content/xdocs/index.xml (original)
+++ poi/site/src/documentation/content/xdocs/index.xml Tue Aug 15 06:01:06 2017
@@ -33,6 +33,12 @@
 
   <body>
     <section><title>Project News</title>
+      <section><title>15 August 2017 - Initial support for JDK 9</title>
+        <p>We did some work to verify that compilation with Java 9 is working and
+          that all unit-tests pass.
+        </p>
+        <p>See the details in the <link href="faq.html#faq-N102B0">FAQ entry</link>.</p>
+      </section>
 
       <!-- latest beta release, if newer than latest final release -->
       <section><title>01 July 2017 - POI 3.17 beta 1 available</title>
@@ -70,18 +76,6 @@
         </p>
       </section>
 
-      <section><title>16 March 2017 - Google Summer of Code</title>
-        <p>The Apache POI project is participating in Google Summer of Code as a project under the Apache Software Foundation. Pick an area of POI that you would like to see developed further and apply to be a GSoC Student. We will happily mentor individuals even if they are not ultimately enrolled as a GSoC Student by Google. <link href="https://community.apache.org/gsoc.html">Read more...</link></p>
-      </section>
-      
-      <section><title>03 October 2016 - The Apache POI project is celebrating its 15th anniversary</title>
-       <p>
-        The Apache POI project is celebrating its 15th anniversary! On the 
-        28th of August 2001, the first 0.1 alpha version of POI was released. 
-        <link href="https://blogs.apache.org/foundation/entry/apache_poi_celebrates_15_years">Read the official announcement...</link>
-       </p>
-      </section>
-
     </section>
 
     <section><title>Mission Statement</title>



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