Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 61A152009D9 for ; Thu, 19 May 2016 11:36:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5FCDC160A04; Thu, 19 May 2016 09:36:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AA2E5160A00 for ; Thu, 19 May 2016 11:36:20 +0200 (CEST) Received: (qmail 33677 invoked by uid 500); 19 May 2016 09:36:19 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 33669 invoked by uid 99); 19 May 2016 09:36:19 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2016 09:36:19 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B2A4CDFBD6; Thu, 19 May 2016 09:36:19 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cdutz@apache.org To: commits@flex.apache.org Message-Id: <1b724c8c2af74a3cb7e8f7382ee3c8f9@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: [flex-utilities] [refs/heads/develop] - Try to resolve downloading issues on some machines. Date: Thu, 19 May 2016 09:36:19 +0000 (UTC) archived-at: Thu, 19 May 2016 09:36:21 -0000 Repository: flex-utilities Updated Branches: refs/heads/develop f38b2f833 -> a6bc10ea2 Try to resolve downloading issues on some machines. Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/a6bc10ea Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/a6bc10ea Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/a6bc10ea Branch: refs/heads/develop Commit: a6bc10ea2cf25820758901d5096bf934dd92de1e Parents: f38b2f8 Author: Christofer Dutz Authored: Thu May 19 11:36:13 2016 +0200 Committer: Christofer Dutz Committed: Thu May 19 11:36:13 2016 +0200 ---------------------------------------------------------------------- .../converter/retrievers/download/DownloadRetriever.java | 1 + .../flex/utilities/converter/retrievers/download/ProxyTest.java | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a6bc10ea/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/DownloadRetriever.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/DownloadRetriever.java b/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/DownloadRetriever.java index bb4370e..197b611 100644 --- a/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/DownloadRetriever.java +++ b/flex-maven-tools/flex-sdk-converter/retrievers/download/src/main/java/org/apache/flex/utilities/converter/retrievers/download/DownloadRetriever.java @@ -269,6 +269,7 @@ public class DownloadRetriever extends BaseRetriever { while ((expectedSize == 0) || (transferredSize < expectedSize)) { // Transfer about 1MB in each iteration. long currentSize = fos.getChannel().transferFrom(rbc, transferredSize, MEGABYTE); + System.out.println("Transferred " + currentSize + " bytes"); if(currentSize < MEGABYTE) { break; } http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a6bc10ea/flex-maven-tools/flex-sdk-converter/retrievers/download/src/test/java/org/apache/flex/utilities/converter/retrievers/download/ProxyTest.java ---------------------------------------------------------------------- diff --git a/flex-maven-tools/flex-sdk-converter/retrievers/download/src/test/java/org/apache/flex/utilities/converter/retrievers/download/ProxyTest.java b/flex-maven-tools/flex-sdk-converter/retrievers/download/src/test/java/org/apache/flex/utilities/converter/retrievers/download/ProxyTest.java index 73d6226..a423b66 100644 --- a/flex-maven-tools/flex-sdk-converter/retrievers/download/src/test/java/org/apache/flex/utilities/converter/retrievers/download/ProxyTest.java +++ b/flex-maven-tools/flex-sdk-converter/retrievers/download/src/test/java/org/apache/flex/utilities/converter/retrievers/download/ProxyTest.java @@ -19,7 +19,6 @@ package org.apache.flex.utilities.converter.retrievers.download; import org.apache.flex.utilities.converter.api.ProxySettings; import org.apache.flex.utilities.converter.retrievers.types.PlatformType; import org.apache.flex.utilities.converter.retrievers.types.SdkType; -import org.junit.Ignore; import org.mockserver.integration.ClientAndProxy; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; @@ -61,8 +60,7 @@ public class ProxyTest { * Does a download using the HttpClient class */ // TODO: Re-Include this. - @Test - @Ignore + @Test(enabled = false) public void simpleSafeHttpNoAuthProxy() throws Exception { ProxySettings proxySettings = new ProxySettings("HTTP", "localhost", 3456, null, null, null); ProxySettings.setProxySettings(proxySettings);