aboutsummaryrefslogtreecommitdiffstats
path: root/ooxml/build.gradle
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2021-04-06 06:11:01 +0000
committerDominik Stadler <centic@apache.org>2021-04-06 06:11:01 +0000
commit3aa712c32b129af024c9d1107d0c83b8df58517b (patch)
tree3a6446f2351f81b3e3ea87fd30063fd2945d80f5 /ooxml/build.gradle
parentddc13a4c48ab296fbadb19ae1a02e511e9db64e8 (diff)
downloadpoi-3aa712c32b129af024c9d1107d0c83b8df58517b.tar.gz
poi-3aa712c32b129af024c9d1107d0c83b8df58517b.zip
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
Diffstat (limited to 'ooxml/build.gradle')
-rw-r--r--ooxml/build.gradle18
1 files changed, 14 insertions, 4 deletions
diff --git a/ooxml/build.gradle b/ooxml/build.gradle
index 2937e482bf..3fac94efbe 100644
--- a/ooxml/build.gradle
+++ b/ooxml/build.gradle
@@ -50,7 +50,17 @@ jar {
}
}
-test {
- // for some reason catching the OOM does not work when run from Gradle
- exclude '**/MemoryUsage.class'
-} \ No newline at end of file
+// Create a separate jar for test-code to depend on it in other projects
+// See http://stackoverflow.com/questions/5144325/gradle-test-dependency
+task testJar(type: Jar, dependsOn: testClasses) {
+ baseName = "test-${project.archivesBaseName}"
+ from sourceSets.test.output
+}
+
+configurations {
+ tests
+}
+
+artifacts {
+ tests testJar
+}