]> source.dussan.org Git - poi.git/commitdiff
tabs to spaces
authorPJ Fanning <fanningpj@apache.org>
Thu, 23 Sep 2021 19:03:06 +0000 (19:03 +0000)
committerPJ Fanning <fanningpj@apache.org>
Thu, 23 Sep 2021 19:03:06 +0000 (19:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893576 13f79535-47bb-0310-9956-ffa450edef68

build.gradle
poi-examples/build.gradle
poi-excelant/build.gradle
poi-integration/build.gradle
poi-ooxml/build.gradle
poi-scratchpad/build.gradle
poi/build.gradle
poi/src/main/java/org/apache/poi/ss/formula/atp/TextJoinFunction.java
poi/src/test/java/org/apache/poi/ss/formula/atp/TestIfna.java

index 798cea7e1f2016ba72c9b941d07a9651ee3ebada..246bea995f541c350dac3e4752deb0067f36555d 100644 (file)
@@ -93,7 +93,7 @@ wrapper.finalizedBy adjustWrapperPropertiesFile
  */
 allprojects {
 //    apply plugin: 'eclipse'
-       apply plugin: 'idea'
+    apply plugin: 'idea'
 }
 
 /**
@@ -122,11 +122,11 @@ subprojects {
         xmlbeansVersion = '5.0.1'
         batikVersion = '1.14'
 
-               JAVA9_SRC = 'src/main/java9'
-               JAVA9_OUT = "${buildDir}/classes/java9/main/"
-               TEST9_SRC = 'src/test/java9'
-               TEST9_OUT = "${buildDir}/classes/java9/test/"
-               VERSIONS9 = 'META-INF/versions/9'
+        JAVA9_SRC = 'src/main/java9'
+        JAVA9_OUT = "${buildDir}/classes/java9/main/"
+        TEST9_SRC = 'src/test/java9'
+        TEST9_OUT = "${buildDir}/classes/java9/test/"
+        VERSIONS9 = 'META-INF/versions/9'
 
         NO_SCRATCHPAD = (findProperty("scratchpad.ignore") == "true")
     }
@@ -335,11 +335,11 @@ subprojects {
                 // the plugin seems to not detect our non-standard build-layout
                 property "sonar.junit.reportPaths", "$projectDir/build/test-results/test"
 
-                               // the Gradle run will report an invalid directory for 'ooxml-schema', but it seems to still work fine
-                               property "sonar.coverage.jacoco.xmlReportPaths", "$projectDir/build/reports/jacoco/test/jacocoTestReport.xml"
+                // the Gradle run will report an invalid directory for 'ooxml-schema', but it seems to still work fine
+                property "sonar.coverage.jacoco.xmlReportPaths", "$projectDir/build/reports/jacoco/test/jacocoTestReport.xml"
 
-                               // somehow the version was not use properly
-                               property "sonar.projectVersion", version
+                // somehow the version was not use properly
+                property "sonar.projectVersion", version
             }
         }
     }
@@ -461,40 +461,40 @@ subprojects {
 // initial try to provide a combined JavaDoc, grouping is still missing here, though!
 task allJavaDoc(type: Javadoc) {
     var prj = [ project(':poi'), project(':poi-excelant'), project(':poi-ooxml'), project(':poi-scratchpad') ]
-       source prj.collect { it.sourceSets.main.allJava }
+    source prj.collect { it.sourceSets.main.allJava }
 
-       // for possible settings see https://docs.gradle.org/current/dsl/org.gradle.api.tasks.javadoc.Javadoc.html
-       classpath = files(subprojects.collect { it.sourceSets.main.compileClasspath })
-       destinationDir = file("${buildDir}/docs/javadoc")
-       maxMemory="2048M"
+    // for possible settings see https://docs.gradle.org/current/dsl/org.gradle.api.tasks.javadoc.Javadoc.html
+    classpath = files(subprojects.collect { it.sourceSets.main.compileClasspath })
+    destinationDir = file("${buildDir}/docs/javadoc")
+    maxMemory="2048M"
 
-       // for possible options see https://docs.gradle.org/current/javadoc/org/gradle/external/javadoc/StandardJavadocDocletOptions.html
-       options.use = true
-       options.splitIndex = true
+    // for possible options see https://docs.gradle.org/current/javadoc/org/gradle/external/javadoc/StandardJavadocDocletOptions.html
+    options.use = true
+    options.splitIndex = true
     options.addBooleanOption('Xdoclint:all,-missing', true)
 
-       title = 'POI API Documentation'
-       options.bottom = '<![CDATA[<i>Copyright ' + new Date().format('yyyy') + ' The Apache Software Foundation or its licensors, as applicable.</i>]]>'
-
-       options.group('DDF - Dreadful Drawing Format', 'org.apache.poi.ddf*')
-       options.group('HPSF - Horrible Property Set Format', 'org.apache.poi.hpsf*')
-       options.group('SS - Common Spreadsheet Format', 'org.apache.poi.ss*')
-       options.group('HSSF - Horrible Spreadsheet Format', 'org.apache.poi.hssf*')
-       options.group('XSSF - Open Office XML Spreadsheet Format', 'org.apache.poi.xssf*')
-       options.group('SL - Common Slideshow Format',  'org.apache.poi.sl*')
-       options.group('HSLF - Horrible Slideshow Format', 'org.apache.poi.hslf*', 'org.apache.poi.hwmf*', 'org.apache.poi.hemf*')
-       options.group('XSLF - Open Office XML Slideshow Format', 'org.apache.poi.xslf*')
-       options.group('HWPF - Horrible Word Processor Format', 'org.apache.poi.hwpf*')
-       options.group('XWPF - Open Office XML Word Processor Format', 'org.apache.poi.xwpf*')
-       options.group('HDGF - Horrible Diagram Format', 'org.apache.poi.hdgf*')
-       options.group('XDGF - Open Office XML Diagram Format', 'org.apache.poi.xdgf*')
-       options.group('HMEF - Transport Neutral Encoding Files (TNEF)', 'org.apache.poi.hmef*')
-       options.group('HSMF Outlook message file format', 'org.apache.poi.hsmf*')
-       options.group('HPBF - Publisher Format Files', 'org.apache.poi.hpbf*')
-       options.group('POIFS - POI File System', 'org.apache.poi.poifs*')
-       options.group('Utilities', 'org.apache.poi.util*')
-       options.group('Excelant', 'org.apache.poi.ss.excelant**')
-//     options.group('Examples', 'org.apache.poi.examples*')
+    title = 'POI API Documentation'
+    options.bottom = '<![CDATA[<i>Copyright ' + new Date().format('yyyy') + ' The Apache Software Foundation or its licensors, as applicable.</i>]]>'
+
+    options.group('DDF - Dreadful Drawing Format', 'org.apache.poi.ddf*')
+    options.group('HPSF - Horrible Property Set Format', 'org.apache.poi.hpsf*')
+    options.group('SS - Common Spreadsheet Format', 'org.apache.poi.ss*')
+    options.group('HSSF - Horrible Spreadsheet Format', 'org.apache.poi.hssf*')
+    options.group('XSSF - Open Office XML Spreadsheet Format', 'org.apache.poi.xssf*')
+    options.group('SL - Common Slideshow Format',  'org.apache.poi.sl*')
+    options.group('HSLF - Horrible Slideshow Format', 'org.apache.poi.hslf*', 'org.apache.poi.hwmf*', 'org.apache.poi.hemf*')
+    options.group('XSLF - Open Office XML Slideshow Format', 'org.apache.poi.xslf*')
+    options.group('HWPF - Horrible Word Processor Format', 'org.apache.poi.hwpf*')
+    options.group('XWPF - Open Office XML Word Processor Format', 'org.apache.poi.xwpf*')
+    options.group('HDGF - Horrible Diagram Format', 'org.apache.poi.hdgf*')
+    options.group('XDGF - Open Office XML Diagram Format', 'org.apache.poi.xdgf*')
+    options.group('HMEF - Transport Neutral Encoding Files (TNEF)', 'org.apache.poi.hmef*')
+    options.group('HSMF Outlook message file format', 'org.apache.poi.hsmf*')
+    options.group('HPBF - Publisher Format Files', 'org.apache.poi.hpbf*')
+    options.group('POIFS - POI File System', 'org.apache.poi.poifs*')
+    options.group('Utilities', 'org.apache.poi.util*')
+    options.group('Excelant', 'org.apache.poi.ss.excelant**')
+//  options.group('Examples', 'org.apache.poi.examples*')
 }
 
 
@@ -509,7 +509,7 @@ rat {
     inputDir.set(file("."))
 
     // include all directories which contain files that are included in releases
-       includes = [
+    includes = [
         "poi-examples/**",
         "poi-excelant/**",
         "poi-integration/**",
@@ -525,12 +525,12 @@ rat {
         "src/**",
     //    "sonar/**",
         "build.*"
-       ]
+    ]
 
     // List of Gradle exclude directives, defaults to ['**/.gradle/**']
     //excludes.add("main/java/org/apache/poi/**/*-chart-data.txt")
     excludes = [
-           "build.javacheck.xml",
+        "build.javacheck.xml",
         "**/build/**",
         "**/out/**",
         "**/*.iml",
@@ -543,10 +543,10 @@ rat {
         "poi-ooxml-full/src/main/xmlschema/org/apache/poi/schemas/XAdES*.xsd",
         "poi-ooxml-full/src/main/xmlschema/org/apache/poi/schemas/xmldsig-core-schema.xsd",
         "poi-ooxml-full/src/main/xmlschema/org/apache/poi/xdgf/visio.xsd",
-               "osgi/README.md",
+        "osgi/README.md",
         // ignore svn conflict artifacts
         "**/module-info.*"
-       ]
+    ]
 
     /*
     <exclude name="documentation/*.txt" />
index 4a2a73cb6805578362bc63208a6ee1b200009920..b49b11dc9db21e61dba80dda6552cee5f2560eb6 100644 (file)
@@ -40,12 +40,12 @@ dependencies {
 
     implementation "org.apache.logging.log4j:log4j-core:${log4jVersion}"
 
-       testImplementation(project(path: ':poi-ooxml', configuration: 'tests')) {
+    testImplementation(project(path: ':poi-ooxml', configuration: 'tests')) {
         if (NO_SCRATCHPAD) {
             exclude group: 'org.apache.poi', module: 'poi-scratchpad'
         }
     }
-       testImplementation project(path: ':poi', configuration: 'tests')
+    testImplementation project(path: ':poi', configuration: 'tests')
 }
 
 final String MODULE_NAME = 'org.apache.poi.examples'
index 2876eb965ce2ca274d964b75b14fa3b223a61a20..5c705d2e8e8f6c9ff14f36e5b52e57b42724d137 100644 (file)
@@ -18,7 +18,7 @@
 import java.util.regex.Pattern
 
 configurations {
-       tests
+    tests
 }
 
 sourceSets {
index 7093336061c75fa73b0ec713e9c066c47ccdc1ef..49cb59784b639f8bf6e4a06ce5b91cf8c649fbe0 100644 (file)
@@ -23,7 +23,7 @@ final String VERSIONS9 = 'META-INF/versions/9'
 final boolean IBMVM = System.getProperty("java.vendor").contains("IBM")
 
 configurations {
-       tests
+    tests
     misc
 }
 
index 45c16f38d5a7fc0ec5f33f107232ed5aa744faa4..81dd5f65d2062272e0132a94005c85b6ca94d09b 100644 (file)
 import java.util.regex.Pattern
 
 configurations {
-       runtimeClasspath {
-               exclude group: 'xalan', module: 'xalan'
-               if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
-                       exclude group: 'xml-apis', module: 'xml-apis'
-               }
-       }
-
-       compileClasspath {
-               exclude group: 'xalan', module: 'xalan'
-               if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
-                       exclude group: 'xml-apis', module: 'xml-apis'
-               }
-       }
-
-       broken
-       tests
+    runtimeClasspath {
+        exclude group: 'xalan', module: 'xalan'
+        if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
+            exclude group: 'xml-apis', module: 'xml-apis'
+        }
+    }
+
+    compileClasspath {
+        exclude group: 'xalan', module: 'xalan'
+        if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
+            exclude group: 'xml-apis', module: 'xml-apis'
+        }
+    }
+
+    broken
+    tests
     javadocs
 }
 
@@ -97,7 +97,7 @@ dependencies {
         }
     }
     renderImplementation("org.apache.xmlgraphics:batik-bridge:${batikVersion}") {
-               exclude group: 'xalan', module: 'xalan'
+        exclude group: 'xalan', module: 'xalan'
         if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
             exclude group: 'xml-apis', module: 'xml-apis'
         }
@@ -118,7 +118,7 @@ dependencies {
         }
     }
     rendersignImplementation("org.apache.xmlgraphics:batik-bridge:${batikVersion}") {
-               exclude group: 'xalan', module: 'xalan'
+        exclude group: 'xalan', module: 'xalan'
         if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
             exclude group: 'xml-apis', module: 'xml-apis'
         }
index 078bb7e5bc69481250407ccf4b75bf7840ad2fa9..4360c505e1ee7d7385c00e4d1a188e4cfc978790 100644 (file)
@@ -136,11 +136,11 @@ task testJar(type: Jar, dependsOn: testClasses) {
 }
 
 javadoc {
-       doFirst {
-               options {
-                       classpath += configurations.javadocs.files
-               }
-       }
+    doFirst {
+        options {
+            classpath += configurations.javadocs.files
+        }
+    }
 }
 
 artifacts {
index da8eeb9ff1c3a78edc3e74c33e63456032a91724..96cf549b2ffc62d37235b38545f9c3772f94703d 100644 (file)
@@ -167,11 +167,11 @@ task testJar(type: Jar, dependsOn: [ testClasses, cacheTest9 ]) {
 javadoc {
     dependsOn configurations.javadocs.dependencies.collect{ ':' + it.dependencyProject.name + ':compileJava' }
 
-       doFirst {
-               options {
-                       classpath += files(configurations.javadocs.dependencies.collect{ it.dependencyProject.sourceSets.main.output.classesDirs })
-               }
-       }
+    doFirst {
+        options {
+            classpath += files(configurations.javadocs.dependencies.collect{ it.dependencyProject.sourceSets.main.output.classesDirs })
+        }
+    }
 }
 
 artifacts {
index 5e3232834c11265bbfd34dfbd5fdee71fccc84ea..14a17854f3d6e6eef09a8536ee34a066a192c4d7 100644 (file)
@@ -56,7 +56,7 @@ final class TextJoinFunction implements FreeRefFunction {
          * Must be at least three arguments:
          *  - delimiter    Delimiter for joining text arguments
          *  - ignoreEmpty  If true, empty strings will be ignored in the join
-         *  - text1               First value to be evaluated as text and joined
+         *  - text1        First value to be evaluated as text and joined
          *  - text2, etc.  Optional additional values to be evaluated and joined
          */
 
index a57f197b37cbb6412a3ef194b47d60327a070fb4..87567743e49e8a7c706aafbc3245937b3af61908 100644 (file)
@@ -33,17 +33,17 @@ import org.junit.jupiter.api.BeforeEach;
  * IfNa unit tests.
  */
 class TestIfna {
-       
+    
     HSSFWorkbook wb;
     HSSFCell cell;
     HSSFFormulaEvaluator fe;
 
-       @BeforeEach
-       void setup() {
+    @BeforeEach
+    void setup() {
         wb = new HSSFWorkbook();
         cell = wb.createSheet().createRow(0).createCell(0);
         fe = new HSSFFormulaEvaluator(wb);
-       }
+    }
 
     @Test
     void testNumbericArgsWorkCorrectly() {
@@ -54,7 +54,7 @@ class TestIfna {
     @Test
     void testStringArgsWorkCorrectly() {
         confirmResult(fe, cell, "IFNA(\"a1\",\"a2\")", new CellValue("a1"));
-        confirmResult(fe, cell, "IFNA(NA(),\"a2\")", new CellValue("a2"));             
+        confirmResult(fe, cell, "IFNA(NA(),\"a2\")", new CellValue("a2"));      
     }
 
     @Test