]> source.dussan.org Git - poi.git/log
poi.git
3 years agoJenkins DSL: Remove some outdated directories/files
Dominik Stadler [Mon, 26 Apr 2021 15:12:15 +0000 (15:12 +0000)]
Jenkins DSL: Remove some outdated directories/files

Otherwise we run into strange CI failures if some duplicated classes
are found in some of the steps

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1889201 13f79535-47bb-0310-9956-ffa450edef68

3 years agoJeknins DSL: Disable Maven based Sonar-run to see if the Gradle-based one works fine now
Dominik Stadler [Mon, 26 Apr 2021 15:12:12 +0000 (15:12 +0000)]
Jeknins DSL: Disable Maven based Sonar-run to see if the Gradle-based one works fine now

We can get rid of the Maven-based build if the Gradle-based job works fine now!

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1889200 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[github-235] Fix date formatting for number cell values. Thanks to Anthony Schott...
PJ Fanning [Sun, 25 Apr 2021 17:16:05 +0000 (17:16 +0000)]
[github-235] Fix date formatting for number cell values. Thanks to Anthony Schott. This close #235

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1889179 13f79535-47bb-0310-9956-ffa450edef68

3 years ago#65228 - the method getCap() does not work correctly in xslf.usermodel.XSLFTextRun
Andreas Beeker [Thu, 22 Apr 2021 22:09:14 +0000 (22:09 +0000)]
#65228 - the method getCap() does not work correctly in xslf.usermodel.XSLFTextRun

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1889111 13f79535-47bb-0310-9956-ffa450edef68

3 years agoTIKA-3164 - add more .xsb and classes needed for TIKAs extractor
Andreas Beeker [Mon, 19 Apr 2021 22:48:09 +0000 (22:48 +0000)]
TIKA-3164 - add more .xsb and classes needed for TIKAs extractor

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888985 13f79535-47bb-0310-9956-ffa450edef68

3 years agoFix Javadocs
Andreas Beeker [Mon, 19 Apr 2021 17:30:02 +0000 (17:30 +0000)]
Fix Javadocs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888977 13f79535-47bb-0310-9956-ffa450edef68

3 years agoFix Javadocs
Andreas Beeker [Sun, 18 Apr 2021 23:15:45 +0000 (23:15 +0000)]
Fix Javadocs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888939 13f79535-47bb-0310-9956-ffa450edef68

3 years agofix gradle builds to better comply with IntelliJ
Andreas Beeker [Sun, 18 Apr 2021 22:11:26 +0000 (22:11 +0000)]
fix gradle builds to better comply with IntelliJ

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888936 13f79535-47bb-0310-9956-ffa450edef68

3 years agoFix Javadocs
Andreas Beeker [Sun, 18 Apr 2021 22:10:38 +0000 (22:10 +0000)]
Fix Javadocs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888935 13f79535-47bb-0310-9956-ffa450edef68

3 years agofix javadocs
Andreas Beeker [Thu, 15 Apr 2021 22:28:11 +0000 (22:28 +0000)]
fix javadocs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888805 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[github-234] Ensure the hours position is correct. Thanks to Anthony Schott. This...
PJ Fanning [Thu, 15 Apr 2021 22:13:09 +0000 (22:13 +0000)]
[github-234] Ensure the hours position is correct. Thanks to Anthony Schott. This closes #234

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888804 13f79535-47bb-0310-9956-ffa450edef68

3 years agoIncrease memory for task allJavaDoc to avoid OOM during building
Dominik Stadler [Thu, 15 Apr 2021 14:25:47 +0000 (14:25 +0000)]
Increase memory for task allJavaDoc to avoid OOM during building

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888793 13f79535-47bb-0310-9956-ffa450edef68

3 years agoJunit 5: Run some tests which change static BYTE_ARRAY_MAX_OVERRIDE in isolation
Dominik Stadler [Thu, 15 Apr 2021 14:25:44 +0000 (14:25 +0000)]
Junit 5: Run some tests which change static BYTE_ARRAY_MAX_OVERRIDE in isolation

Otherwise many other tests can become flaky if the value is set very low

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888792 13f79535-47bb-0310-9956-ffa450edef68

3 years agoGradle: Synchronize the code in the different build-scripts across the projects
Dominik Stadler [Thu, 15 Apr 2021 14:25:38 +0000 (14:25 +0000)]
Gradle: Synchronize the code in the different build-scripts across the projects

No actual change in behavior expected
Mostly moved parts to make it easier to compare the build files with each other

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888791 13f79535-47bb-0310-9956-ffa450edef68

3 years agofix javadocs - remove @author tags (http://apache-poi.1045710.n5.nabble.com/Javadocs...
Andreas Beeker [Wed, 14 Apr 2021 22:53:33 +0000 (22:53 +0000)]
fix javadocs - remove @author tags (http://apache-poi.1045710.n5.nabble.com/Javadocs-clean-up-remove-author-tags-tp5737663.html)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888780 13f79535-47bb-0310-9956-ffa450edef68

3 years ago:poi-ooxml - fix javadocs - link to dependent/external project javadocs
Andreas Beeker [Tue, 13 Apr 2021 22:46:12 +0000 (22:46 +0000)]
:poi-ooxml - fix javadocs - link to dependent/external project javadocs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888747 13f79535-47bb-0310-9956-ffa450edef68

3 years ago:poi-scratchpad - fix javadocs - link to dependent/external project javadocs
Andreas Beeker [Tue, 13 Apr 2021 21:37:33 +0000 (21:37 +0000)]
:poi-scratchpad - fix javadocs - link to dependent/external project javadocs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888746 13f79535-47bb-0310-9956-ffa450edef68

3 years agoreplace over engineered inner classes with lambdas/method references
Andreas Beeker [Tue, 13 Apr 2021 19:44:38 +0000 (19:44 +0000)]
replace over engineered inner classes with lambdas/method references

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888743 13f79535-47bb-0310-9956-ffa450edef68

3 years agoFix Xades / Document.importNode SIGSEV
Andreas Beeker [Mon, 12 Apr 2021 23:49:29 +0000 (23:49 +0000)]
Fix Xades / Document.importNode SIGSEV

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888686 13f79535-47bb-0310-9956-ffa450edef68

3 years ago:poi - fix javadocs - link to dependent/external project javadocs
Andreas Beeker [Sun, 11 Apr 2021 20:17:06 +0000 (20:17 +0000)]
:poi - fix javadocs - link to dependent/external project javadocs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888640 13f79535-47bb-0310-9956-ffa450edef68

3 years agoAdjust paths in build-files some more and copy svn-libs
Dominik Stadler [Sat, 10 Apr 2021 12:29:13 +0000 (12:29 +0000)]
Adjust paths in build-files some more and copy svn-libs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888584 13f79535-47bb-0310-9956-ffa450edef68

3 years agomove jdk check into doFirst
Andreas Beeker [Sat, 10 Apr 2021 12:01:15 +0000 (12:01 +0000)]
move jdk check into doFirst

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888582 13f79535-47bb-0310-9956-ffa450edef68

3 years agofix paths for integration build, docs, add site task to main build.gradle
Andreas Beeker [Sat, 10 Apr 2021 11:44:30 +0000 (11:44 +0000)]
fix paths for integration build, docs, add site task to main build.gradle

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888580 13f79535-47bb-0310-9956-ffa450edef68

3 years agotry to fix build issue
PJ Fanning [Sat, 10 Apr 2021 10:01:50 +0000 (10:01 +0000)]
try to fix build issue

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888577 13f79535-47bb-0310-9956-ffa450edef68

3 years agoStore jars for svnant locally
Dominik Stadler [Sat, 10 Apr 2021 07:16:57 +0000 (07:16 +0000)]
Store jars for svnant locally

Downloading them becomes nearly impossible now that bintray.dl closes down,
so let's rather persist the jars as part of the source distribution for now.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888572 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[bug-65227] add NPE guard in SheetUtil. Thanks to Petr Blaha
PJ Fanning [Fri, 9 Apr 2021 08:21:13 +0000 (08:21 +0000)]
[bug-65227] add NPE guard in SheetUtil. Thanks to Petr Blaha

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888553 13f79535-47bb-0310-9956-ffa450edef68

3 years agoAdjust for the new source-directories in some more places
Dominik Stadler [Thu, 8 Apr 2021 20:10:53 +0000 (20:10 +0000)]
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

3 years agoEnsure the cache-directory for ImageIO is set to a valid directory
Dominik Stadler [Thu, 8 Apr 2021 20:10:48 +0000 (20:10 +0000)]
Ensure the cache-directory for ImageIO is set to a valid directory

Introduce a helper method to set ImageIO.setCacheDir() to the default temporary directory

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888535 13f79535-47bb-0310-9956-ffa450edef68

3 years agofix paths to new gradle directories
Andreas Beeker [Thu, 8 Apr 2021 17:54:42 +0000 (17:54 +0000)]
fix paths to new gradle directories

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888529 13f79535-47bb-0310-9956-ffa450edef68

3 years agofix merge problem
Andreas Beeker [Wed, 7 Apr 2021 21:48:05 +0000 (21:48 +0000)]
fix merge problem

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888489 13f79535-47bb-0310-9956-ffa450edef68

3 years ago65206 - Migrate ant / maven to gradle build
Andreas Beeker [Wed, 7 Apr 2021 21:40:33 +0000 (21:40 +0000)]
65206 - Migrate ant / maven to gradle build
compile / jar / test of mrJars
don't include ants build.xml anymore
rename directories to match project and maven artifact names
refactor artifacts - so each project has one artifact
replace static references in hssf/dev tests with junit5 constructs, which had problems in parallel tests
increase gradle heap to 4gb because of OOM - maybe less would also work

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888488 13f79535-47bb-0310-9956-ffa450edef68

3 years agoAdjust path for archiving JUnit files to capture both locations that are in use
Dominik Stadler [Wed, 7 Apr 2021 05:33:18 +0000 (05:33 +0000)]
Adjust path for archiving JUnit files to capture both locations that are in use

Somehow JUnit stores test-results either under test-result or under test-result/test,
so let's look at both directories for now

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888458 13f79535-47bb-0310-9956-ffa450edef68

3 years agoJenkins DSL: Add a workaround to run "ant init" before building with Gradle
Dominik Stadler [Tue, 6 Apr 2021 20:42:32 +0000 (20:42 +0000)]
Jenkins DSL: Add a workaround to run "ant init" before building with Gradle

Otherwise the Ant-helpers are not compiled properly currently

We should remove this as soon as Gradle build is working standalone

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888450 13f79535-47bb-0310-9956-ffa450edef68

3 years agoEnable Gradle Wrapper to avoid running with an unsupported local version
Dominik Stadler [Tue, 6 Apr 2021 20:23:44 +0000 (20:23 +0000)]
Enable Gradle Wrapper to avoid running with an unsupported local version

This may cause the strange "PrecompiledProjectScript" failures that we see currently

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888449 13f79535-47bb-0310-9956-ffa450edef68

3 years agoAdd a simple test-case for XLSX2CSV
Dominik Stadler [Tue, 6 Apr 2021 12:48:21 +0000 (12:48 +0000)]
Add a simple test-case for XLSX2CSV

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888432 13f79535-47bb-0310-9956-ffa450edef68

3 years agoAdd one more directory from Maven build to .gitignore
Dominik Stadler [Tue, 6 Apr 2021 12:48:16 +0000 (12:48 +0000)]
Add one more directory from Maven build to .gitignore

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888431 13f79535-47bb-0310-9956-ffa450edef68

3 years agoFix directory for examples-sources to make Maven build work again
Dominik Stadler [Tue, 6 Apr 2021 12:48:14 +0000 (12:48 +0000)]
Fix directory for examples-sources to make Maven build work again

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888430 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSwitch the Ant-build to separate folders under "build/classes"
Dominik Stadler [Tue, 6 Apr 2021 06:11:16 +0000 (06:11 +0000)]
Switch the Ant-build to separate folders under "build/classes"

This avoids colliding in strange ways with the default Gradle location "build/classes/main/java"

This caused very strange error messages about invalid package names when compiling with Gradle and Ant in one source checkout

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888422 13f79535-47bb-0310-9956-ffa450edef68

3 years agoAdd a Gradle target "allJavaDoc" for an initial combined JavaDoc run
Dominik Stadler [Tue, 6 Apr 2021 06:11:13 +0000 (06:11 +0000)]
Add a Gradle target "allJavaDoc" for an initial combined JavaDoc run

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888421 13f79535-47bb-0310-9956-ffa450edef68

3 years agoAdjust JavaDoc target to act similar as the one in the build.xml
Dominik Stadler [Tue, 6 Apr 2021 06:11:10 +0000 (06:11 +0000)]
Adjust JavaDoc target to act similar as the one in the build.xml

Set memory and set "lint:non" on Java 8 to not be stricter than the Ant-build

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888420 13f79535-47bb-0310-9956-ffa450edef68

3 years agoAdjust some JavaDoc
Dominik Stadler [Tue, 6 Apr 2021 06:11:07 +0000 (06:11 +0000)]
Adjust some JavaDoc

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888419 13f79535-47bb-0310-9956-ffa450edef68

3 years agoXSLX2CSV: Do not double-encode if the value is already having quotes and escape doubl...
Dominik Stadler [Tue, 6 Apr 2021 06:11:01 +0000 (06:11 +0000)]
XSLX2CSV: Do not double-encode if the value is already having quotes and escape double-quotes

Most CSV formats use "" (two quotes) to escape a "-character, we should do this in this
example as well to produce files that can be parsed by other CSV processors correctly.

Also cases where the value is already enclosed in quotes should not lead to additional quotes

Add a simple initial test to module "examples" verify basic functionality of XSLX2CSV
as I often rely on it for converting some very large xlsx-files to csv

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888418 13f79535-47bb-0310-9956-ffa450edef68

3 years agoAlso look for test-data in ../test-data for Gradle build
Dominik Stadler [Tue, 6 Apr 2021 06:10:46 +0000 (06:10 +0000)]
Also look for test-data in ../test-data for Gradle build

This is needed when running tests in the IDE via the Gradle project import

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888417 13f79535-47bb-0310-9956-ffa450edef68

3 years agoUpdate JUnit to 5.7.1 and junit-platform to 1.7.1
Dominik Stadler [Tue, 6 Apr 2021 06:10:33 +0000 (06:10 +0000)]
Update JUnit to 5.7.1 and junit-platform to 1.7.1

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888416 13f79535-47bb-0310-9956-ffa450edef68

3 years agoApply some IDE suggestions, improve exception message, add some JavaDoc
Dominik Stadler [Tue, 6 Apr 2021 06:10:19 +0000 (06:10 +0000)]
Apply some IDE suggestions, improve exception message, add some JavaDoc

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888415 13f79535-47bb-0310-9956-ffa450edef68

3 years agoIgnore new "build" and "out" directories
Dominik Stadler [Sun, 28 Mar 2021 19:55:00 +0000 (19:55 +0000)]
Ignore new "build" and "out" directories

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888140 13f79535-47bb-0310-9956-ffa450edef68

3 years agoGradle: Add support for rat-check and initial target "jenkins"
Dominik Stadler [Sun, 28 Mar 2021 19:54:57 +0000 (19:54 +0000)]
Gradle: Add support for rat-check and initial target "jenkins"

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888139 13f79535-47bb-0310-9956-ffa450edef68

3 years agoRemove support for japicmp from Gradle build
Dominik Stadler [Sun, 28 Mar 2021 19:54:54 +0000 (19:54 +0000)]
Remove support for japicmp from Gradle build

I now spent a few hours trying to make it work and the Gradle support is
simply not production-ready and also not maintained, it triggers various
strange errors and does not supporting the usual Gradle conventions.

So I do not want to spend more time on it, feel free to revive it if you know how
to make this work properly.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888138 13f79535-47bb-0310-9956-ffa450edef68

3 years ago65206 - Migrate ant / maven to gradle build
Andreas Beeker [Sun, 28 Mar 2021 01:12:58 +0000 (01:12 +0000)]
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

3 years ago65206 - Migrate ant / maven to gradle build
Andreas Beeker [Sat, 27 Mar 2021 23:16:45 +0000 (23:16 +0000)]
65206 - Migrate ant / maven to gradle build
try to fix Java 16 build

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888119 13f79535-47bb-0310-9956-ffa450edef68

3 years ago65206 - Migrate ant / maven to gradle build
Andreas Beeker [Sat, 27 Mar 2021 14:03:16 +0000 (14:03 +0000)]
65206 - Migrate ant / maven to gradle build
update gradle files and project structure along https://github.com/centic9/poi/tree/gradle_build
remove eclipse IDE project files
remove obsolete record generator files

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888111 13f79535-47bb-0310-9956-ffa450edef68

3 years agoremove temp gradle workaround for xmlbeans
PJ Fanning [Fri, 26 Mar 2021 08:22:00 +0000 (08:22 +0000)]
remove temp gradle workaround for xmlbeans

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888079 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[github-233] Updated de.rototor.pdfbox:graphics2d to 0.31. Thanks to Tobias Stadler...
PJ Fanning [Thu, 25 Mar 2021 09:21:04 +0000 (09:21 +0000)]
[github-233] Updated de.rototor.pdfbox:graphics2d to 0.31. Thanks to Tobias Stadler. This closes #233

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888058 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMake "normalizing" the file-path actually work
Dominik Stadler [Wed, 24 Mar 2021 16:07:33 +0000 (16:07 +0000)]
Make "normalizing" the file-path actually work

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888021 13f79535-47bb-0310-9956-ffa450edef68

3 years agoDon't use a hardcoded temporary file (and also not a hardcoded /tmp directory)
Dominik Stadler [Wed, 24 Mar 2021 09:32:12 +0000 (09:32 +0000)]
Don't use a hardcoded temporary file (and also not a hardcoded /tmp directory)

This could cause issues in CI or when multiple different users run tests of POI on one machine!

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887998 13f79535-47bb-0310-9956-ffa450edef68

3 years agoMake new tests for IOUtils work on Windows as well
Dominik Stadler [Wed, 24 Mar 2021 09:30:34 +0000 (09:30 +0000)]
Make new tests for IOUtils work on Windows as well

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887997 13f79535-47bb-0310-9956-ffa450edef68

3 years agoadd more xsbs to the ooxml-lite jar by recursing through XWPF and XSSF documents
Andreas Beeker [Tue, 23 Mar 2021 23:58:47 +0000 (23:58 +0000)]
add more xsbs to the ooxml-lite jar by recursing through XWPF and XSSF documents

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887978 13f79535-47bb-0310-9956-ffa450edef68

3 years agoForbidden apis fix
Andreas Beeker [Sat, 20 Mar 2021 21:27:02 +0000 (21:27 +0000)]
Forbidden apis fix

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887880 13f79535-47bb-0310-9956-ffa450edef68

3 years agodispose cursor finally
Sayi [Sat, 20 Mar 2021 16:58:11 +0000 (16:58 +0000)]
dispose cursor finally

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887868 13f79535-47bb-0310-9956-ffa450edef68

3 years agoCreate, get, modify and remove comments, support operating paragraphs, pictures and...
Sayi [Sat, 20 Mar 2021 16:21:41 +0000 (16:21 +0000)]
Create, get, modify and remove comments, support operating paragraphs, pictures and tables in comments

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887867 13f79535-47bb-0310-9956-ffa450edef68

3 years agoadd jdk 1.16 job for xmlbeans
PJ Fanning [Sat, 20 Mar 2021 10:03:36 +0000 (10:03 +0000)]
add jdk 1.16 job for xmlbeans

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887845 13f79535-47bb-0310-9956-ffa450edef68

3 years agorevert accidental change
PJ Fanning [Fri, 19 Mar 2021 21:27:04 +0000 (21:27 +0000)]
revert accidental change

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887829 13f79535-47bb-0310-9956-ffa450edef68

3 years agotry to re-enable new getBlockAt code
PJ Fanning [Fri, 19 Mar 2021 21:26:30 +0000 (21:26 +0000)]
try to re-enable new getBlockAt code

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887828 13f79535-47bb-0310-9956-ffa450edef68

3 years agoadd disabled test for corrupt file
PJ Fanning [Fri, 19 Mar 2021 21:07:52 +0000 (21:07 +0000)]
add disabled test for corrupt file

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887827 13f79535-47bb-0310-9956-ffa450edef68

3 years agoAllow negative numbers in conditional part of format string
Dominik Stadler [Fri, 19 Mar 2021 09:40:10 +0000 (09:40 +0000)]
Allow negative numbers in conditional part of format string

Closes #229

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887802 13f79535-47bb-0310-9956-ffa450edef68

3 years agoEnhance javadoc and coverage for IOUtils
Dominik Stadler [Fri, 19 Mar 2021 09:40:05 +0000 (09:40 +0000)]
Enhance javadoc and coverage for IOUtils

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887801 13f79535-47bb-0310-9956-ffa450edef68

3 years ago#65192 - Allow change of EncryptionMode
Andreas Beeker [Wed, 17 Mar 2021 22:51:58 +0000 (22:51 +0000)]
#65192 - Allow change of EncryptionMode

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887764 13f79535-47bb-0310-9956-ffa450edef68

3 years agoRevert erroneously modified logging statement
Marius Volkhart [Tue, 16 Mar 2021 11:37:56 +0000 (11:37 +0000)]
Revert erroneously modified logging statement

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887717 13f79535-47bb-0310-9956-ffa450edef68

3 years agoadd back some new code
PJ Fanning [Mon, 15 Mar 2021 20:24:22 +0000 (20:24 +0000)]
add back some new code

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887685 13f79535-47bb-0310-9956-ffa450edef68

3 years agorevert recent changes
PJ Fanning [Mon, 15 Mar 2021 18:21:37 +0000 (18:21 +0000)]
revert recent changes

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887682 13f79535-47bb-0310-9956-ffa450edef68

3 years agoRun the TestAllFiles tests as part of Gradle
Marius Volkhart [Mon, 15 Mar 2021 17:52:40 +0000 (17:52 +0000)]
Run the TestAllFiles tests as part of Gradle

I accidentally excluded these in r1887643. They should not be excluded.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887681 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[bug-65184] revert due to integration test failures
PJ Fanning [Sun, 14 Mar 2021 23:54:49 +0000 (23:54 +0000)]
[bug-65184] revert due to integration test failures

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887660 13f79535-47bb-0310-9956-ffa450edef68

3 years agoTry to fix sonar build
Andreas Beeker [Sun, 14 Mar 2021 23:49:43 +0000 (23:49 +0000)]
Try to fix sonar build

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887659 13f79535-47bb-0310-9956-ffa450edef68

3 years agoreformat file
PJ Fanning [Sun, 14 Mar 2021 23:29:34 +0000 (23:29 +0000)]
reformat file

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887658 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[bug-65184] Improve performance of POFSMiniStore getBlockAt. Thanks to sits
PJ Fanning [Sun, 14 Mar 2021 23:21:18 +0000 (23:21 +0000)]
[bug-65184] Improve performance of POFSMiniStore getBlockAt. Thanks to sits

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887657 13f79535-47bb-0310-9956-ffa450edef68

3 years agoImplement CONCAT function #65185
Nick Burch [Sun, 14 Mar 2021 22:53:27 +0000 (22:53 +0000)]
Implement CONCAT function #65185

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887656 13f79535-47bb-0310-9956-ffa450edef68

3 years agoChange Gradle to use java-library plugin
Marius Volkhart [Sun, 14 Mar 2021 20:43:43 +0000 (20:43 +0000)]
Change Gradle to use java-library plugin

This plugin is specifically built for libraries. The major difference to the regular java plugin is that is allows defining dependencies as part of the api or implementation. Both are used by the project at compile/runtime, but only api dependencies are made available to dependent projects.

In our current setup, this doesn't matter much. We deploy to maven central using pre-built POMs. It's more of a future-proofing, and it makes it a little bit clearer which gradle projects actually require which dependencies.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887650 13f79535-47bb-0310-9956-ffa450edef68

3 years agoxmlbeans 5.0.0 release
PJ Fanning [Sun, 14 Mar 2021 19:47:22 +0000 (19:47 +0000)]
xmlbeans 5.0.0 release

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887648 13f79535-47bb-0310-9956-ffa450edef68

3 years agoExclude batik-script dependency from OOXML artifact
Marius Volkhart [Sun, 14 Mar 2021 18:56:30 +0000 (18:56 +0000)]
Exclude batik-script dependency from OOXML artifact

We do not make use of the batik-script dependency. While this is likely to be true of a variety of the Batik dependencies, batik-script causes problems for our users who are using JPMS. See [bug-65103].

Fixes #230

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887643 13f79535-47bb-0310-9956-ffa450edef68

3 years agoSpecify more granular Batik dependencies
Marius Volkhart [Sun, 14 Mar 2021 18:51:12 +0000 (18:51 +0000)]
Specify more granular Batik dependencies

Batik-all is a strange artifact. It's POM declares dependencies on all the sub-JARs, but its JAR has all of the sub-jars repackaged. This results in multiple JARs with the same packages being added to consuming applications. This leads to problems for JPMS users. See [bug-65183].

The Ant build does not use batik-all, so the Maven and Gradle builds should not either.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887642 13f79535-47bb-0310-9956-ffa450edef68

3 years agoDisable parallel tests on Gradle again
Marius Volkhart [Sun, 14 Mar 2021 11:31:18 +0000 (11:31 +0000)]
Disable parallel tests on Gradle again

Something is causing parallel tests to fail on CI. I haven't been able to track down what it is. The symptoms look similar to others where the cause was a test modifying the test-data directory.

The integration tests also sometimes run into OutOfMemoryErrors when I run them in parallel.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887631 13f79535-47bb-0310-9956-ffa450edef68

3 years agoLimit which tests can run in parallel
Marius Volkhart [Sun, 14 Mar 2021 10:42:15 +0000 (10:42 +0000)]
Limit which tests can run in parallel

Some tests modify global resources. Those tests cannot be run in parallel with others, as they cause problems or become flaky. Where possible, indicate to JUnit the resources in contention. Otherwise, mark the tests as needing to run in isolation.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887630 13f79535-47bb-0310-9956-ffa450edef68

3 years agoGet Gradle GitHub Action past downloading the XMLBeans JAR
Marius Volkhart [Sun, 14 Mar 2021 01:46:05 +0000 (01:46 +0000)]
Get Gradle GitHub Action past downloading the XMLBeans JAR

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887614 13f79535-47bb-0310-9956-ffa450edef68

3 years ago[bug-65184] Improve performance of POFSMiniStore getBlockAt. Thanks to sits
PJ Fanning [Sat, 13 Mar 2021 18:09:13 +0000 (18:09 +0000)]
[bug-65184] Improve performance of POFSMiniStore getBlockAt. Thanks to sits

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887604 13f79535-47bb-0310-9956-ffa450edef68

3 years agoupdate key
PJ Fanning [Thu, 11 Mar 2021 21:39:48 +0000 (21:39 +0000)]
update key

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887516 13f79535-47bb-0310-9956-ffa450edef68

3 years agoStreamline HPSF CustomProperties collection retrieval
Marius Volkhart [Wed, 10 Mar 2021 21:42:19 +0000 (21:42 +0000)]
Streamline HPSF CustomProperties collection retrieval

Reduce the number of map lookups necessary to compute the return values for methods that return collections of property details. Since we maintain parity between the `props` and `dictionary` contents, when retrieving property details, we can reference the `props` directly and avoid the `dictionary` indirection.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887453 13f79535-47bb-0310-9956-ffa450edef68

3 years agoupdate key for kiwiwings - downrating sha1 - see https://infra.apache.org/release...
Andreas Beeker [Tue, 9 Mar 2021 22:04:11 +0000 (22:04 +0000)]
update key for kiwiwings - downrating sha1 - see https://infra.apache.org/release-signing.html

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887398 13f79535-47bb-0310-9956-ffa450edef68

3 years agoParse PPDrawing more deterministically
Marius Volkhart [Tue, 9 Mar 2021 20:59:24 +0000 (20:59 +0000)]
Parse PPDrawing more deterministically

The [MS-PPT] spec is very clear about what the format of the PPDrawing record must be, and parsing deterministically makes for clearer code.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887396 13f79535-47bb-0310-9956-ffa450edef68

3 years agoAdditional debug logging for unknown records in HSLF
Marius Volkhart [Tue, 9 Mar 2021 19:26:31 +0000 (19:26 +0000)]
Additional debug logging for unknown records in HSLF

Recently, while debugging app behavior on HSLF documents, I had to dig into the OOXML that Microsoft PowerPoint places into files saved in PPT format. Having information in the logs about when records were not parsed by POI was very helpful. The hex identifier was critical in being able to quickly search the [MS-PPT] spec for what type of record it was, and the integer identifier was helpful in quickly finding the Record type in RecordTypes.java.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887393 13f79535-47bb-0310-9956-ffa450edef68

3 years agoCleanup documentation of EscherChildAnchorRecord and EscherClientAnchorRecord
Marius Volkhart [Tue, 9 Mar 2021 18:28:59 +0000 (18:28 +0000)]
Cleanup documentation of EscherChildAnchorRecord and EscherClientAnchorRecord

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887391 13f79535-47bb-0310-9956-ffa450edef68

3 years agotry to fix windows path issues in exception messages
Andreas Beeker [Mon, 8 Mar 2021 23:14:11 +0000 (23:14 +0000)]
try to fix windows path issues in exception messages

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887346 13f79535-47bb-0310-9956-ffa450edef68

3 years agoraise XmlBeans to 5.0.0 (nightly) also in the gradle build
Andreas Beeker [Mon, 8 Mar 2021 22:36:08 +0000 (22:36 +0000)]
raise XmlBeans to 5.0.0 (nightly) also in the gradle build

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887345 13f79535-47bb-0310-9956-ffa450edef68

3 years agoremove old batik jar
Andreas Beeker [Mon, 8 Mar 2021 22:29:26 +0000 (22:29 +0000)]
remove old batik jar

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887344 13f79535-47bb-0310-9956-ffa450edef68

3 years agoUse XmlBeans 5 nightly
Andreas Beeker [Mon, 8 Mar 2021 00:35:10 +0000 (00:35 +0000)]
Use XmlBeans 5 nightly

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887309 13f79535-47bb-0310-9956-ffa450edef68

3 years agoadd DeferredGeneration sample
PJ Fanning [Sat, 6 Mar 2021 09:10:58 +0000 (09:10 +0000)]
add DeferredGeneration sample

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887250 13f79535-47bb-0310-9956-ffa450edef68

3 years agoconvert tabs to spaces
PJ Fanning [Sat, 6 Mar 2021 01:51:17 +0000 (01:51 +0000)]
convert tabs to spaces

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887239 13f79535-47bb-0310-9956-ffa450edef68

3 years agoadd DeferredGeneration sample
PJ Fanning [Sat, 6 Mar 2021 01:48:57 +0000 (01:48 +0000)]
add DeferredGeneration sample

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887238 13f79535-47bb-0310-9956-ffa450edef68

3 years agoRemove unnecessary array conversion in HWPF FSPATable
Marius Volkhart [Mon, 1 Mar 2021 19:06:28 +0000 (19:06 +0000)]
Remove unnecessary array conversion in HWPF FSPATable

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887044 13f79535-47bb-0310-9956-ffa450edef68

3 years agoRemove deprecated HWPF FSPA methods
Marius Volkhart [Mon, 1 Mar 2021 18:46:35 +0000 (18:46 +0000)]
Remove deprecated HWPF FSPA methods

These methods have been @Deprecated for years, and are part of @Internal structures.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887039 13f79535-47bb-0310-9956-ffa450edef68

3 years agoImprove performance of HSLFPictureData#write
Marius Volkhart [Mon, 1 Mar 2021 00:37:11 +0000 (00:37 +0000)]
Improve performance of HSLFPictureData#write

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887022 13f79535-47bb-0310-9956-ffa450edef68