You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/02/06 23:08:42 UTC
[Bug 56115] New: Need to provide parameters to Ant's get task to
reliably download behind firewall and proxy
https://issues.apache.org/bugzilla/show_bug.cgi?id=56115
Bug ID: 56115
Summary: Need to provide parameters to Ant's get task to
reliably download behind firewall and proxy
Product: Tomcat 7
Version: 7.0.47
Hardware: Sun
OS: Solaris
Status: NEW
Severity: enhancement
Priority: P2
Component: Packaging
Assignee: dev@tomcat.apache.org
Reporter: mar009999@hotmail.com
In trying to build at work, when the ant process pulls dependencies for Tomcat,
it would often hang and timeout, failing at that particular download.
I debugged some and realized that it was due to default value of get's
"usehttpcaches" property set to true. I edited the build file's trydownload
target to be this:
<target name="trydownload" if="trydownload.run" depends="trydownload.check">
<!-- Downloads a file if not yet downloaded and the source URL is available
-->
<get src="${sourcefile}" retries="${trydownload.retries}"
httpusecaches="${trydownload.httpusecaches}" dest="${destfile}" />
</target>
and I added these in build.properties.default:
trydownload.retries=3
trydownload.httpusecaches=false
This would keep the default behavior implied with ant's get task. Then I
overrode that httpusecaches value in my build.properties file, and it reliably
works all the time. I left the retries value as it didn't change my results
but thought it could prove useful for others.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 56115] Need to provide parameters to Ant's get task to reliably
download behind firewall and proxy
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56115
--- Comment #1 from Anthony <ma...@hotmail.com> ---
Created attachment 31289
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31289&action=edit
Change of trydownload target in build.xml
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 56115] Need to provide parameters to Ant's get task to reliably
download behind firewall and proxy
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56115
--- Comment #2 from Anthony <ma...@hotmail.com> ---
Created attachment 31290
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31290&action=edit
Additional default properties to add to build.properties.default
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 56115] Need to provide parameters to Ant's get task to reliably
download behind firewall and proxy
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56115
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Mark Thomas <ma...@apache.org> ---
Thanks for the report and the suggested change. I have committed a variation
(use just the httpusecaches property for all instances of the get task) to
8.0.x for 8.0.4 onwards and to 7.0.x for 7.0.51 onwards.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org