aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2022-07-29 17:57:05 +0000
committerDominik Stadler <centic@apache.org>2022-07-29 17:57:05 +0000
commitb076e0e18891516a5558a6202cce9f7a22b68c44 (patch)
tree434b9cbd53fa65672ad2f52a0aaac2d5538804a9 /build.xml
parentf5ae78aa8649573ceedb33a63333d24e555be123 (diff)
downloadpoi-b076e0e18891516a5558a6202cce9f7a22b68c44.tar.gz
poi-b076e0e18891516a5558a6202cce9f7a22b68c44.zip
Add workaround for bcpkix-module which is not loaded automatically for some reason
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903109 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml10
1 files changed, 8 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index cf4edf170d..d9088d6689 100644
--- a/build.xml
+++ b/build.xml
@@ -1333,6 +1333,7 @@ under the License.
<attribute name="modulepath-ref"/>
<attribute name="module1" default=""/>
<attribute name="module2" default=""/>
+ <attribute name="module3" default=""/>
<attribute name="outputDir"/>
<element name="elements" implicit="true"/>
<sequential>
@@ -1385,12 +1386,16 @@ under the License.
<local name="use_module1"/>
<local name="use_module2"/>
+ <local name="use_module3"/>
<condition property="use_module1" value="true" unless:true="${isJava8}">
<length string="@{module1}" when="greater" length="0"/>
</condition>
<condition property="use_module2" value="true" unless:true="${isJava8}">
<length string="@{module2}" when="greater" length="0"/>
</condition>
+ <condition property="use_module3" value="true" unless:true="${isJava8}">
+ <length string="@{module3}" when="greater" length="0"/>
+ </condition>
<!-- As of 2018, JaCoCo is managing expectations and stay on Java 5 and therefore don't support junitlauncher -->
<!-- https://github.com/jacoco/jacoco/issues/673 ... m( -->
@@ -1435,6 +1440,7 @@ under the License.
<jvmarg line="--add-modules org.junit.jupiter.params" unless:true="${isJava8}"/>
<jvmarg line="--add-modules org.apache.poi.@{module1}" if:set="use_module1"/>
<jvmarg line="--add-modules org.apache.poi.@{module2}" if:set="use_module2"/>
+ <jvmarg line="--add-modules @{module3}" if:set="use_module3"/>
</fork>
<listener classname="Junit5Progress" />
@@ -1461,7 +1467,7 @@ under the License.
</path>
<poiunit failureproperty="ooxml.test.failed" heap="768" modulepath-ref="restest.modules"
- module1="ooxml" module2="scratchpad" outputDir="${ooxml.reports.test}">
+ module1="ooxml" module2="scratchpad" module3="org.bouncycastle.pkix" outputDir="${ooxml.reports.test}">
<zipfileset src="build/dist/maven/poi-ooxml-tests/poi-ooxml-${version.id}-tests.jar">
<include name="**/${testpattern}.class"/>
<exclude name="**/*$*.class"/>
@@ -1782,7 +1788,7 @@ under the License.
<attribute name="type"/>
<sequential>
<poiunit failureproperty="ooxml.test.failed" heap="768" jacocodest="build/jacoco-@{type}.exec"
- modulepath-ref="@{modulepath-ref}" module1="ooxml" module2="scratchpad" outputDir="${ooxml.reports.test}">
+ modulepath-ref="@{modulepath-ref}" module1="ooxml" module2="scratchpad" module3="org.bouncycastle.pkix" outputDir="${ooxml.reports.test}">
<zipfileset src="build/dist/maven/poi-ooxml-tests/poi-ooxml-${version.id}-tests.jar">
<include name="**/${testpattern}.class"/>
<exclude name="**/*$*.class"/>