aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2022-12-26 16:25:26 +0000
committerDominik Stadler <centic@apache.org>2022-12-26 16:25:26 +0000
commitcf559d3ae46c2faab8cd46259f63c25128626292 (patch)
tree4eb4cbca383c1ee9e2b7c4f2d2a2d630ae4e6f57 /build.xml
parentc0d3f16b8701406751ffce3f363844176595d4c0 (diff)
downloadpoi-cf559d3ae46c2faab8cd46259f63c25128626292.tar.gz
poi-cf559d3ae46c2faab8cd46259f63c25128626292.zip
Ant-Java 11+: Add support for a 4th module to be able to add slf4j module
Otherwise running test-ooxml may fail because of a missing class git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1906220 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml13
1 files changed, 11 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index 3dd8f0f09b..38287205ad 100644
--- a/build.xml
+++ b/build.xml
@@ -1345,6 +1345,7 @@ under the License.
<attribute name="module1" default=""/>
<attribute name="module2" default=""/>
<attribute name="module3" default=""/>
+ <attribute name="module4" default=""/>
<attribute name="outputDir"/>
<element name="elements" implicit="true"/>
<sequential>
@@ -1398,6 +1399,7 @@ under the License.
<local name="use_module1"/>
<local name="use_module2"/>
<local name="use_module3"/>
+ <local name="use_module4"/>
<condition property="use_module1" value="true" unless:true="${isJava8}">
<length string="@{module1}" when="greater" length="0"/>
</condition>
@@ -1407,6 +1409,9 @@ under the License.
<condition property="use_module3" value="true" unless:true="${isJava8}">
<length string="@{module3}" when="greater" length="0"/>
</condition>
+ <condition property="use_module4" value="true" unless:true="${isJava8}">
+ <length string="@{module4}" 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( -->
@@ -1447,11 +1452,13 @@ under the License.
<modulepath refid="@{modulepath-ref}" unless:true="${isJava8}"/>
+ <!--jvmarg line="-verbose:module"/-->
<jvmarg line="--add-modules org.junit.platform.launcher" unless:true="${isJava8}"/>
<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"/>
+ <jvmarg line="--add-modules @{module4}" if:set="use_module4"/>
</fork>
<listener classname="Junit5Progress" />
@@ -1478,7 +1485,8 @@ under the License.
</path>
<poiunit failureproperty="ooxml.test.failed" heap="768" modulepath-ref="restest.modules"
- module1="ooxml" module2="scratchpad" module3="org.bouncycastle.pkix" outputDir="${ooxml.reports.test}">
+ module1="ooxml" module2="scratchpad" module3="org.bouncycastle.pkix" module4="org.slf4j"
+ 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"/>
@@ -1799,7 +1807,8 @@ 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" module3="org.bouncycastle.pkix" outputDir="${ooxml.reports.test}">
+ modulepath-ref="@{modulepath-ref}" module1="ooxml" module2="scratchpad" module3="org.bouncycastle.pkix"
+ module4="org.slf4j" 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"/>
'n417' href='#n417'>417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663