]> source.dussan.org Git - poi.git/commitdiff
Adjust for the new source-directories in some more places
authorDominik Stadler <centic@apache.org>
Thu, 8 Apr 2021 20:10:53 +0000 (20:10 +0000)
committerDominik Stadler <centic@apache.org>
Thu, 8 Apr 2021 20:10:53 +0000 (20:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888536 13f79535-47bb-0310-9956-ffa450edef68

README.rst
build.gradle
jenkins/create_jobs.groovy
sonar/examples/pom.xml
sonar/excelant/pom.xml
sonar/integration-test/pom.xml
sonar/main/pom.xml
sonar/ooxml-full/pom.xml
sonar/ooxml/pom.xml
sonar/scratchpad/pom.xml

index 1c1b5027eede6b2122b3c4e6fd8ec17e73204707..00dd10fc99072ce6ebd5c17ecbdd8773ad2b7252 100644 (file)
@@ -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
 
index 375615866380029bf0f453536e17af657f9905dc..a85f346ee2c76f9da3b02af89052926edceb8346 100644 (file)
@@ -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")
     /*
     <exclude name="documentation/*.txt" />
     <exclude name="documentation/content/xdocs/dtd/" />
index f841b787905aa3fdb2f1fcb391272b1ec493fd6f..85f09a0da021cf9842662a88576740b03a4caccc 100644 (file)
@@ -156,10 +156,10 @@ def apicheckDesc = '''
 <p>
 <b><a href="https://sonarcloud.io/dashboard?id=poi-parent" target="_blank">Sonar reports</a></b> -
 <p>
-<b><a href="lastSuccessfulBuild/artifact/build/main/build/reports/japi.html">API Check POI</a></b>
-<b><a href="lastSuccessfulBuild/artifact/build/ooxml/build/reports/japi.html">API Check POI-OOXML</a></b>
-<b><a href="lastSuccessfulBuild/artifact/build/excelant/build/reports/japi.html">API Check POI-Excelant</a></b>
-<b><a href="lastSuccessfulBuild/artifact/build/scratchpad/build/reports/japi.html">API Check POI-Scratchpad</a></b>
+<b><a href="lastSuccessfulBuild/artifact/build/poi/build/reports/japi.html">API Check POI</a></b>
+<b><a href="lastSuccessfulBuild/artifact/build/poi-ooxml/build/reports/japi.html">API Check POI-OOXML</a></b>
+<b><a href="lastSuccessfulBuild/artifact/build/poi-excelant/build/reports/japi.html">API Check POI-Excelant</a></b>
+<b><a href="lastSuccessfulBuild/artifact/build/poi-scratchpad/build/reports/japi.html">API Check POI-Scratchpad</a></b>
 
 </p>
 '''
index a6851591e9e3af17346ffd47a28f666e07f125eb..cbeb37f0925aced6b21c1c5c11cf35a574d725b5 100644 (file)
@@ -36,7 +36,7 @@
                             <outputDirectory>${basedir}/src/main/java</outputDirectory>
                             <resources>
                                 <resource>
-                                    <directory>../../examples/src/main/java</directory>
+                                    <directory>../../poi-examples/src/main/java</directory>
                                 </resource>
                             </resources>
                         </configuration>
index 7dceeabfa2e8d0731f9578a2fa0c15789c0237ad..20bfcf4c62dcb31e2cf3a4db7513baa8aaa22ef3 100644 (file)
@@ -31,7 +31,7 @@
                             <outputDirectory>${basedir}/src/main/java</outputDirectory>
                             <resources>
                                 <resource>
-                                    <directory>../../excelant/src/main/java</directory>
+                                    <directory>../../poi-excelant/src/main/java</directory>
                                 </resource>
                             </resources>
                         </configuration>
                             <outputDirectory>${basedir}/src/main/resources</outputDirectory>
                             <resources>
                                 <resource>
-                                    <directory>../../excelant/src/main/resources</directory>
+                                    <directory>../../poi-excelant/src/main/resources</directory>
                                 </resource>
                                 <resource>
-                                    <directory>../../excelant/src/test/resources</directory>
+                                    <directory>../../poi-excelant/src/test/resources</directory>
                                 </resource>
                             </resources>
                         </configuration>
@@ -66,7 +66,7 @@
                             <outputDirectory>${basedir}/src/test/java</outputDirectory>
                             <resources>
                                 <resource>
-                                    <directory>../../excelant/src/test/java</directory>
+                                    <directory>../../poi-excelant/src/test/java</directory>
                                 </resource>
                             </resources>
                         </configuration>
index 583d28ec6b98a64a879afab4edc61e34aa191d84..7fe0e86e2c18c89d9716b84134b7ea2054d63cf7 100644 (file)
@@ -34,7 +34,7 @@
                                     <directory>../../poi-integration/src/test/java</directory>
                                 </resource>
                                 <resource>
-                                    <directory>../../main/src/test/java</directory>
+                                    <directory>../../poi/src/test/java</directory>
                                     <includes>
                                         <include>org/apache/poi/POIDataSamples.java</include>
                                         <include>org/apache/poi/util/NullPrintStream.java</include>
index 3383554035d91df102dfe124b5e5b60ad94f6910..d5c2aeefa7463b7d8de2accc75cd242129bfac0b 100644 (file)
@@ -30,7 +30,7 @@
                             <outputDirectory>${basedir}/src/main/java</outputDirectory>
                             <resources>
                                 <resource>
-                                    <directory>../../main/src/main/java</directory>
+                                    <directory>../../poi/src/main/java</directory>
                                 </resource>
                             </resources>
                         </configuration>
@@ -45,7 +45,7 @@
                             <outputDirectory>${basedir}/src/main/resources</outputDirectory>
                             <resources>
                                 <resource>
-                                    <directory>../../main/src/main/resources</directory>
+                                    <directory>../../poi/src/main/resources</directory>
                                 </resource>
                             </resources>
                         </configuration>
                             <outputDirectory>${basedir}/src/test/java</outputDirectory>
                             <resources>
                                 <resource>
-                                    <directory>../../main/src/test/java</directory>
+                                    <directory>../../poi/src/test/java</directory>
                                 </resource>
                                 <resource>
-                                    <directory>../../main/src/test/resources</directory>
+                                    <directory>../../poi/src/test/resources</directory>
                                 </resource>
                             </resources>
                         </configuration>
             <artifactId>SparseBitSet</artifactId>
             <version>1.2</version>
         </dependency>
-    </dependencies>
+               <dependency>
+                       <groupId>org.apache.ant</groupId>
+                       <artifactId>ant</artifactId>
+                       <version>1.10.9</version>
+                       <scope>test</scope>
+               </dependency>
+       </dependencies>
 </project>
index 263136d9629e385c68a378dc95823198e3a2f777..3b10eff0082ca1255c5f4c5bfb514d3fa2479327 100644 (file)
@@ -34,7 +34,7 @@
                         </goals>
                         <configuration>
                             <target>
-                                <property name="xsdir" value="${basedir}/../../ooxml-schema/src/main/xmlschema/org/apache/poi"/>
+                                <property name="xsdir" value="${basedir}/../../poi-ooxml-full/src/main/xmlschema/org/apache/poi"/>
                                 <copy todir="${basedir}/target/schemas">
                                     <zipfileset src="${xsdir}/schemas/OfficeOpenXML-XMLSchema-Transitional.zip"/>
                                     <zipfileset src="${xsdir}/schemas/OpenPackagingConventions-XMLSchema.zip" includes="opc-digSig.xsd,opc-relationships.xsd"/>
                                     <directory>${basedir}/target/generated-resources</directory>
                                 </resource>
                                 <resource>
-                                    <directory>${basedir}/../../ooxml-schema/src/ooxml-full/java9</directory>
+                                    <directory>${basedir}/../../poi-ooxml-full/src/main/java9</directory>
                                     <targetPath>META-INF/versions/9</targetPath>
                                     <includes>
                                         <include>*.class</include>
index e181ca3171186f02b438585ede2b83c648adb671..83845c591e800a6ff7440d0052937bcd96f1e8ad 100644 (file)
@@ -28,7 +28,7 @@
                             <outputDirectory>${basedir}/src/main/java</outputDirectory>
                             <resources>
                                 <resource>
-                                    <directory>../../ooxml/src/main/java</directory>
+                                    <directory>../../poi-ooxml/src/main/java</directory>
                                 </resource>
                             </resources>
                         </configuration>
@@ -43,7 +43,7 @@
                             <outputDirectory>${basedir}/src/main/resources</outputDirectory>
                             <resources>
                                 <resource>
-                                    <directory>../../ooxml/src/main/resources</directory>
+                                    <directory>../../poi-ooxml/src/main/resources</directory>
                                 </resource>
                             </resources>
                         </configuration>
                             <outputDirectory>${basedir}/src/test/java</outputDirectory>
                             <resources>
                                 <resource>
-                                    <directory>../../ooxml/src/test/java</directory>
+                                    <directory>../../poi-ooxml/src/test/java</directory>
                                 </resource>
                                 <resource>
-                                    <directory>../../ooxml/src/test/resources</directory>
+                                    <directory>../../poi-ooxml/src/test/resources</directory>
                                 </resource>
                             </resources>
                         </configuration>
index 639d930358da6213178ff3e7b2071ea451e24380..b5d1e80ef7ade6c8782893df52c04399cd333afb 100644 (file)
@@ -37,7 +37,7 @@
                             <outputDirectory>${basedir}/src/main/java</outputDirectory>
                             <resources>
                                 <resource>
-                                    <directory>../../scratchpad/src/main/java</directory>
+                                    <directory>../../poi-scratchpad/src/main/java</directory>
                                 </resource>
                             </resources>
                         </configuration>
@@ -53,7 +53,7 @@
                             <outputDirectory>${basedir}/src/main/resources</outputDirectory>
                             <resources>
                                 <resource>
-                                    <directory>../../scratchpad/src/main/resources</directory>
+                                    <directory>../../poi-scratchpad/src/main/resources</directory>
                                 </resource>
                             </resources>
                         </configuration>
                             <outputDirectory>${basedir}/src/test/java</outputDirectory>
                             <resources>
                                 <resource>
-                                    <directory>../../scratchpad/src/test/java</directory>
+                                    <directory>../../poi-scratchpad/src/test/java</directory>
                                 </resource>
                                 <resource>
-                                    <directory>../../scratchpad/src/test/resources</directory>
+                                    <directory>../../poi-scratchpad/src/test/resources</directory>
                                 </resource>
                             </resources>
                         </configuration>