]> source.dussan.org Git - poi.git/commitdiff
add "provided" jars to binary dist bundle
authorAndreas Beeker <kiwiwings@apache.org>
Thu, 3 Sep 2020 19:13:16 +0000 (19:13 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Thu, 3 Sep 2020 19:13:16 +0000 (19:13 +0000)
add instruction to pptx rendering
case-insensitive argument handling in PPTX2PNG

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1881416 13f79535-47bb-0310-9956-ffa450edef68

build.xml
src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java

index b6604fa47a89ba3885655e2f9782393f53f72a77..ab3ab5740d09a9025fb17c7dd6bbb66f68354c0d 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -2076,11 +2076,15 @@ under the License.
                 <globmapper from="*" to="${zipdir}/lib/*"/>
             </mappedresources>
             <mappedresources cache="true">
-                <fileset dir="${ooxml.lib}" includes="xmlbeans-*.jar,curvesapi-*.jar,commons-compress*.jar"/>
+                <fileset dir="${ooxml.lib}"/>
                 <regexpmapper from="^(.*\.jar)$$" to="${zipdir}/ooxml-lib/\1"/>
             </mappedresources>
             <mappedresources cache="true">
-                <fileset dir="${dist.dir}/maven" includes="**/*.jar" excludes="**/*-javadoc.jar,**/*-sources.jar"/>
+                <fileset dir="${ooxml-provided.lib}"/>
+                <regexpmapper from="^(.*\.jar)$$" to="${zipdir}/auxiliary/\1"/>
+            </mappedresources>
+            <mappedresources cache="true">
+                <fileset dir="${dist.dir}/maven" includes="**/*.jar" excludes="**/*-javadoc.jar,**/*-sources.jar,**/*-tests.jar"/>
                 <chainedmapper>
                     <flattenmapper/>
                     <globmapper from="*" to="${zipdir}/*"/>
index 07eb12565d33c08564cf288fef48f0f3bc011b82..c9336b26c9db2c8518bc8be642a828b487fd389d 100644 (file)
@@ -116,7 +116,7 @@ public final class PPTX2PNG {
 
         for (int i = 0; i < args.length; i++) {
             String opt = (i+1 < args.length) ? args[i+1] : null;
-            switch (args[i]) {
+            switch (args[i].toLowerCase(Locale.ROOT)) {
                 case "-scale":
                     if (opt != null) {
                         scale = Float.parseFloat(opt);
@@ -164,7 +164,7 @@ public final class PPTX2PNG {
                         fixSide = "long";
                     }
                     break;
-                case "-inputType":
+                case "-inputtype":
                     if (opt != null) {
                         defaultFileType = FileMagic.valueOf(opt);
                         i++;
@@ -172,13 +172,13 @@ public final class PPTX2PNG {
                         defaultFileType = FileMagic.OLE2;
                     }
                     break;
-                case "-textAsShapes":
+                case "-textasshapes":
                     textAsShapes = true;
                     break;
-                case "-ignoreParse":
+                case "-ignoreparse":
                     ignoreParse = true;
                     break;
-                case "-extractEmbedded":
+                case "-extractembedded":
                     extractEmbedded = true;
                     break;
                 case "-charset":