From: Andreas Beeker Date: Sun, 28 Mar 2021 01:12:58 +0000 (+0000) Subject: 65206 - Migrate ant / maven to gradle build X-Git-Tag: REL_5_1_0~285 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d2958cca7ffa844d5bcf3f552199e598ca53540f;p=poi.git 65206 - Migrate ant / maven to gradle build fix distsourcebuild git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888121 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/integrationtest/build.xml b/integrationtest/build.xml new file mode 100644 index 0000000000..f1b139a940 --- /dev/null +++ b/integrationtest/build.xml @@ -0,0 +1,148 @@ + + + + + Test-Ant file which verifies that the Apache POI distribution build sources can be compiled successfully. + +Before running this, you should execute the "assemble" target in the main build.xml to have the packaged files created correctly. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/integrationtest/src/test/java/build.xml b/integrationtest/src/test/java/build.xml deleted file mode 100644 index 263a3810c2..0000000000 --- a/integrationtest/src/test/java/build.xml +++ /dev/null @@ -1,148 +0,0 @@ - - - - - Test-Ant file which verifies that the Apache POI distribution build sources can be compiled successfully. - -Before running this, you should execute the "assemble" target in the main build.xml to have the packaged files created correctly. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy index 9161e2bcf7..4a66735450 100644 --- a/jenkins/create_jobs.groovy +++ b/jenkins/create_jobs.groovy @@ -455,7 +455,7 @@ poijobs.each { poijob -> } ant { targets(['run'] + (poijob.properties ?: [])) - buildFile('src/integrationtest/build.xml') + buildFile('integrationtest/build.xml') // Properties did not work, so I had to use targets instead //properties(poijob.properties ?: '') antInstallation(antRT) @@ -472,19 +472,19 @@ poijobs.each { poijob -> } } // in archive, junit and jacoco publishers, matches beneath build/*/build/... are for Gradle-build results - archiveArtifacts('build/dist/*.tar.gz,build/findbugs.html,build/coverage/**,build/integration-test-results/**,lib/ooxml/**,build/*/build/libs/*.jar') + archiveArtifacts('build/dist/*.tar.gz,build/findbugs.html,build/coverage/**,integrationtest/build/test-results/**,*/build/libs/*.jar') warnings(['Java Compiler (javac)', 'JavaDoc Tool'], null) { resolveRelativePaths() } - archiveJunit('build/ooxml-test-results/*.xml,build/scratchpad-test-results/*.xml,build/test-results/*.xml,build/excelant-test-results/*.xml,build/integration-test-results/*.xml,build/*/build/test-results/test/TEST-*.xml,build/*/build/test-results/TEST-*.xml') { + archiveJunit('*/build/test-results/*.xml') { testDataPublishers { publishTestStabilityData() } } jacocoCodeCoverage { - classPattern('build/classes,build/excelant-classes,build/ooxml-classes,build/scratchpad-classes,build/*/build/classes') - execPattern('build/*.exec,build/*/build/jacoco/*.exec') - sourcePattern('src/java,src/excelant/java,src/ooxml/java,src/scratchpad/src') + classPattern('*/build/classes') + execPattern('*/build/*.exec,*/build/jacoco/*.exec') + sourcePattern('*/src/main/java') exclusionPattern('com/microsoft/**,org/openxmlformats/**,org/etsi/**,org/w3/**,schemaorg*/**,schemasMicrosoft*/**,org/apache/poi/hdf/model/hdftypes/definitions/*.class,org/apache/poi/hwpf/model/types/*.class,org/apache/poi/hssf/usermodel/DummyGraphics2d.class,org/apache/poi/sl/draw/binding/*.class') }