]> source.dussan.org Git - poi.git/commitdiff
try to fix winmail errors in maven / sonar builds
authorAndreas Beeker <kiwiwings@apache.org>
Tue, 21 Jan 2020 00:06:32 +0000 (00:06 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Tue, 21 Jan 2020 00:06:32 +0000 (00:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873001 13f79535-47bb-0310-9956-ffa450edef68

jenkins/create_jobs.groovy
src/integrationtest/org/apache/poi/stress/HMEFFileHandler.java

index 955a12fddba37bef5a6f09088dd6f8783bb1aca7..29d64ee7fe1f8383eaa8aca5e415c388c061bad8 100644 (file)
@@ -231,6 +231,7 @@ poijobs.each { poijob ->
             }
             preBuildCleanup {
                 includePattern('**/ooxml-lib/ooxml*.jar')
+                includePattern('sonar/*/target/**')
             }
             if(poijob.sonar) {
                 credentialsBinding {
index 908600979f7a5c4752bdaaf6dc6d080cf57584c0..f48775cf2151ad3753d24d1453b43d38b5bd01f9 100644 (file)
@@ -25,7 +25,6 @@ import java.util.Arrays;
 
 import org.apache.poi.hmef.HMEFMessage;
 import org.apache.poi.hmef.attribute.MAPIAttribute;
-import org.apache.poi.hmef.attribute.MAPIStringAttribute;
 import org.apache.poi.hmef.attribute.TNEFAttribute;
 import org.apache.poi.hmef.attribute.TNEFProperty;
 import org.apache.poi.hsmf.datatypes.MAPIProperty;
@@ -47,13 +46,7 @@ public class HMEFFileHandler extends AbstractFileHandler {
     public void handleFile(InputStream stream, String path) throws Exception {
                HMEFMessage msg = new HMEFMessage(stream);
 
-               // list all properties
-               StringBuilder props = new StringBuilder();
-               for(MAPIAttribute att : msg.getMessageMAPIAttributes()) {
-                       props.append(att.getType()).append(": ").append(MAPIStringAttribute.getAsString( att)).append("\n");
-               }
-
-               // there are two test-files that have no body...
+               // there are test-files that have no body...
                String[] HTML_BODY = {
                        "Testing TNEF Message", "TNEF test message with attachments", "Test"
                };