diff --git a/build.xml b/build.xml index 66c62f5ef..5490bd592 100644 --- a/build.xml +++ b/build.xml @@ -86,8 +86,9 @@ under the License. - - + + + @@ -227,6 +228,7 @@ under the License. + diff --git a/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java b/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java index d99aadd9c..609a26d6b 100644 --- a/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java +++ b/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java @@ -309,6 +309,12 @@ public class TestSignatureInfo { signatureConfig.setTspUrl("http://timestamp.comodoca.com/rfc3161"); signatureConfig.setTspRequestPolicy(null); // comodoca request fails, if default policy is set ... signatureConfig.setTspOldProtocol(false); + + //set proxy info if any + String proxy = System.getProperty("http_proxy"); + if (proxy != null && proxy.trim().length() > 0) { + signatureConfig.setProxyUrl(proxy); + } if (mockTsp) { TimeStampService tspService = new TimeStampService(){