try to fix winmail errors in maven / sonar builds

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1873001 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2020-01-21 00:06:32 +00:00
parent 0fb322bb92
commit 88bbcee1c6
2 changed files with 2 additions and 8 deletions

View File

@ -231,6 +231,7 @@ poijobs.each { poijob ->
} }
preBuildCleanup { preBuildCleanup {
includePattern('**/ooxml-lib/ooxml*.jar') includePattern('**/ooxml-lib/ooxml*.jar')
includePattern('sonar/*/target/**')
} }
if(poijob.sonar) { if(poijob.sonar) {
credentialsBinding { credentialsBinding {

View File

@ -25,7 +25,6 @@ import java.util.Arrays;
import org.apache.poi.hmef.HMEFMessage; import org.apache.poi.hmef.HMEFMessage;
import org.apache.poi.hmef.attribute.MAPIAttribute; 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.TNEFAttribute;
import org.apache.poi.hmef.attribute.TNEFProperty; import org.apache.poi.hmef.attribute.TNEFProperty;
import org.apache.poi.hsmf.datatypes.MAPIProperty; 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 { public void handleFile(InputStream stream, String path) throws Exception {
HMEFMessage msg = new HMEFMessage(stream); HMEFMessage msg = new HMEFMessage(stream);
// list all properties // there are test-files that have no body...
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...
String[] HTML_BODY = { String[] HTML_BODY = {
"Testing TNEF Message", "TNEF test message with attachments", "Test" "Testing TNEF Message", "TNEF test message with attachments", "Test"
}; };