From 30d8d1773596008d8333c282e420f19d8215d44a Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Thu, 8 Apr 2021 20:10:53 +0000 Subject: [PATCH] Adjust for the new source-directories in some more places git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888536 13f79535-47bb-0310-9956-ffa450edef68 --- README.rst | 14 +++++++------- build.gradle | 27 +++++++++++++++------------ jenkins/create_jobs.groovy | 8 ++++---- sonar/examples/pom.xml | 2 +- sonar/excelant/pom.xml | 8 ++++---- sonar/integration-test/pom.xml | 2 +- sonar/main/pom.xml | 16 +++++++++++----- sonar/ooxml-full/pom.xml | 4 ++-- sonar/ooxml/pom.xml | 8 ++++---- sonar/scratchpad/pom.xml | 8 ++++---- 10 files changed, 53 insertions(+), 44 deletions(-) diff --git a/README.rst b/README.rst index 1c1b5027ee..00dd10fc99 100644 --- a/README.rst +++ b/README.rst @@ -70,17 +70,17 @@ Contributing * Write a unit test: - * Binary formats and Common APIs: src/testcases/org/apache/poi/ - * OOXML APIs only: src/ooxml/testcases/org/apache/poi/ - * Scratchpad (Binary formats): src/scratchpad/testcases/org/apache/poi/ + * Binary formats and Common APIs: poi/src/test/java/org/apache/poi/ + * OOXML APIs only: poi-ooxml/src/test/java/org/apache/poi/ + * Scratchpad (Binary formats): poi-scratchpad/src/test/java/org/apache/poi/ * Test files: test-data/ * Navigate the source, make changes, and run unit tests to verify - * Binary formats and Common APIs: src/java/org/apache/poi/ - * OOXML APIs only: src/ooxml/java/org/apache/poi/ - * Scratchpad (Binary formats): src/scratchpad/src/org/apache/poi/ - * Examples: src/examples/src/org/apache/poi/ + * Binary formats and Common APIs: poi/src/main/java/org/apache/poi/ + * OOXML APIs only: poi-ooxml/src/main/java/org/apache/poi/ + * Scratchpad (Binary formats): poi-scratchpad/src/main/java/org/apache/poi/ + * Examples: poi-examples/src/main/java/org/apache/poi/ * More info: `How To Build page`_ at apache.org diff --git a/build.gradle b/build.gradle index 3756158663..a85f346ee2 100644 --- a/build.gradle +++ b/build.gradle @@ -331,33 +331,36 @@ rat { inputDir.set(file(".")) // include all directories which contain files that are included in releases - includes.add("examples/**") - includes.add("excelant/**") + includes.add("poi-examples/**") + includes.add("poi-excelant/**") includes.add("poi-integration/**") includes.add("legal/**") - includes.add("main/**") + includes.add("poi/**") includes.add("maven/**") - includes.add("ooxml/**") - includes.add("ooxml-schema/**") + includes.add("poi-ooxml/**") + includes.add("poi-ooxml-full/**") + includes.add("poi-ooxml-lite/**") + includes.add("poi-ooxml-lite-agent/**") //includes.add("osgi/**") - includes.add("scratchpad/**") + includes.add("poi-scratchpad/**") includes.add("src/**") //includes.add("sonar/**") includes.add("build.*") // List of Gradle exclude directives, defaults to ['**/.gradle/**'] //excludes.add("main/java/org/apache/poi/**/*-chart-data.txt") + includes.add("build.javacheck.xml") excludes.add("**/build/**") excludes.add("**/out/**") excludes.add("**/*.iml") excludes.add("**/*.log") excludes.add("**/main/java/org/apache/poi/**/*-chart-data.txt") - excludes.add("main/src/main/resources/org/apache/poi/sl/draw/geom/presetShapeDefinitions.xml") - excludes.add("ooxml/src/main/resources/org/apache/poi/xslf/usermodel/notesMaster.xml") - excludes.add("ooxml/src/main/resources/org/apache/poi/xssf/usermodel/presetTableStyles.xml") - excludes.add("ooxml-schema/src/main/xmlschema/org/apache/poi/schemas/XAdES*.xsd") - excludes.add("ooxml-schema/src/main/xmlschema/org/apache/poi/schemas/xmldsig-core-schema.xsd") - excludes.add("ooxml-schema/src/main/xmlschema/org/apache/poi/xdgf/visio.xsd") + excludes.add("poi/src/main/resources/org/apache/poi/sl/draw/geom/presetShapeDefinitions.xml") + excludes.add("poi-ooxml/src/main/resources/org/apache/poi/xslf/usermodel/notesMaster.xml") + excludes.add("poi-ooxml/src/main/resources/org/apache/poi/xssf/usermodel/presetTableStyles.xml") + excludes.add("poi-ooxml-full/src/main/xmlschema/org/apache/poi/schemas/XAdES*.xsd") + excludes.add("poi-ooxml-full/src/main/xmlschema/org/apache/poi/schemas/xmldsig-core-schema.xsd") + excludes.add("poi-ooxml-full/src/main/xmlschema/org/apache/poi/xdgf/visio.xsd") /* diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy index f841b78790..85f09a0da0 100644 --- a/jenkins/create_jobs.groovy +++ b/jenkins/create_jobs.groovy @@ -156,10 +156,10 @@ def apicheckDesc = '''

Sonar reports -

-API Check POI -API Check POI-OOXML -API Check POI-Excelant -API Check POI-Scratchpad +API Check POI +API Check POI-OOXML +API Check POI-Excelant +API Check POI-Scratchpad

''' diff --git a/sonar/examples/pom.xml b/sonar/examples/pom.xml index a6851591e9..cbeb37f092 100644 --- a/sonar/examples/pom.xml +++ b/sonar/examples/pom.xml @@ -36,7 +36,7 @@ ${basedir}/src/main/java - ../../examples/src/main/java + ../../poi-examples/src/main/java diff --git a/sonar/excelant/pom.xml b/sonar/excelant/pom.xml index 7dceeabfa2..20bfcf4c62 100644 --- a/sonar/excelant/pom.xml +++ b/sonar/excelant/pom.xml @@ -31,7 +31,7 @@ ${basedir}/src/main/java - ../../excelant/src/main/java + ../../poi-excelant/src/main/java @@ -47,10 +47,10 @@ ${basedir}/src/main/resources - ../../excelant/src/main/resources + ../../poi-excelant/src/main/resources - ../../excelant/src/test/resources + ../../poi-excelant/src/test/resources @@ -66,7 +66,7 @@ ${basedir}/src/test/java - ../../excelant/src/test/java + ../../poi-excelant/src/test/java diff --git a/sonar/integration-test/pom.xml b/sonar/integration-test/pom.xml index 583d28ec6b..7fe0e86e2c 100644 --- a/sonar/integration-test/pom.xml +++ b/sonar/integration-test/pom.xml @@ -34,7 +34,7 @@ ../../poi-integration/src/test/java - ../../main/src/test/java + ../../poi/src/test/java org/apache/poi/POIDataSamples.java org/apache/poi/util/NullPrintStream.java diff --git a/sonar/main/pom.xml b/sonar/main/pom.xml index 3383554035..d5c2aeefa7 100644 --- a/sonar/main/pom.xml +++ b/sonar/main/pom.xml @@ -30,7 +30,7 @@ ${basedir}/src/main/java - ../../main/src/main/java + ../../poi/src/main/java @@ -45,7 +45,7 @@ ${basedir}/src/main/resources - ../../main/src/main/resources + ../../poi/src/main/resources @@ -61,10 +61,10 @@ ${basedir}/src/test/java - ../../main/src/test/java + ../../poi/src/test/java - ../../main/src/test/resources + ../../poi/src/test/resources @@ -128,5 +128,11 @@ SparseBitSet 1.2 - + + org.apache.ant + ant + 1.10.9 + test + + diff --git a/sonar/ooxml-full/pom.xml b/sonar/ooxml-full/pom.xml index 263136d962..3b10eff008 100644 --- a/sonar/ooxml-full/pom.xml +++ b/sonar/ooxml-full/pom.xml @@ -34,7 +34,7 @@ - + @@ -100,7 +100,7 @@ ${basedir}/target/generated-resources - ${basedir}/../../ooxml-schema/src/ooxml-full/java9 + ${basedir}/../../poi-ooxml-full/src/main/java9 META-INF/versions/9 *.class diff --git a/sonar/ooxml/pom.xml b/sonar/ooxml/pom.xml index e181ca3171..83845c591e 100644 --- a/sonar/ooxml/pom.xml +++ b/sonar/ooxml/pom.xml @@ -28,7 +28,7 @@ ${basedir}/src/main/java - ../../ooxml/src/main/java + ../../poi-ooxml/src/main/java @@ -43,7 +43,7 @@ ${basedir}/src/main/resources - ../../ooxml/src/main/resources + ../../poi-ooxml/src/main/resources @@ -58,10 +58,10 @@ ${basedir}/src/test/java - ../../ooxml/src/test/java + ../../poi-ooxml/src/test/java - ../../ooxml/src/test/resources + ../../poi-ooxml/src/test/resources diff --git a/sonar/scratchpad/pom.xml b/sonar/scratchpad/pom.xml index 639d930358..b5d1e80ef7 100644 --- a/sonar/scratchpad/pom.xml +++ b/sonar/scratchpad/pom.xml @@ -37,7 +37,7 @@ ${basedir}/src/main/java - ../../scratchpad/src/main/java + ../../poi-scratchpad/src/main/java @@ -53,7 +53,7 @@ ${basedir}/src/main/resources - ../../scratchpad/src/main/resources + ../../poi-scratchpad/src/main/resources @@ -69,10 +69,10 @@ ${basedir}/src/test/java - ../../scratchpad/src/test/java + ../../poi-scratchpad/src/test/java - ../../scratchpad/src/test/resources + ../../poi-scratchpad/src/test/resources