Commit Graph

48 Commits

Author SHA1 Message Date
Ben Marsh
48c9eac6d1 Use a lockless method of getting things into the cache. Relies on file system moves being atomic; should allow using a cache on a shared or network drive.
[CL 2453248 by Ben Marsh in Main branch]
2015-02-20 10:46:31 -05:00
Ben Marsh
0f3f468601 Rename InvalidCacheException to CorruptPackFileException, since it isn't necessarily caused by an invalid cache entry. Other minor housekeeping.
[CL 2453182 by Ben Marsh in Main branch]
2015-02-20 09:51:05 -05:00
Ben Marsh
3686c074c4 PR #749: Added cache support for GitDependencies. (Contributed by bozaro)
https://github.com/EpicGames/UnrealEngine/pull/749

[CL 2453105 by Ben Marsh in Main branch]
2015-02-20 08:59:03 -05:00
Ben Marsh
3eb524e1fc Condense the proxy server settings into a single parameter.
[CL 2450340 by Ben Marsh in Main branch]
2015-02-18 12:12:47 -05:00
Ben Marsh
70fc486484 Clean up help messages for GitDependencies to fit within 80 character wide terminals.
[CL 2450182 by Ben Marsh in Main branch]
2015-02-18 10:43:00 -05:00
Ben Marsh
4e7072879b Fix problem running Git dependencies on a non-HFS external drive on Mac.
[CL 2424391 by Ben Marsh in Main branch]
2015-01-29 16:19:51 -05:00
Ben Marsh
788ae2db74 PR #678: Add support for proxy username and password in GitDependencies (Contributed by jsfdez)
https://github.com/EpicGames/UnrealEngine/pull/678

[CL 2383719 by Ben Marsh in Main branch]
2014-12-10 11:58:24 -05:00
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Ben Marsh
959cfa782d Add missing copyright notices to source files.
[CL 2379212 by Ben Marsh in Main branch]
2014-12-06 19:14:20 -05:00
Ben Marsh
2a7d676386 Prompt for whether to overwrite existing git dependencies the first time you run Setup.bat/sh.
[CL 2357308 by Ben Marsh in Main branch]
2014-11-12 14:02:02 -05:00
Ben Marsh
ed5535016d Add support for HTTP proxies - PR-590, authored by azzazel84.
[CL 2356138 by Ben Marsh in Main branch]
2014-11-11 15:41:46 -05:00
Ben Marsh
0fb02a3e2b Fix setting executable permissions for files which are filtered out by platform.
#codereview Dmitry.Rekman

[CL 2356014 by Ben Marsh in Main branch]
2014-11-11 12:25:55 -05:00
Ben Marsh
dfd71683f4 Add support for setting executable permissions on Posix platforms from the Git dependency manifest, and clean up some output logging.
[CL 2354498 by Ben Marsh in Main branch]
2014-11-10 09:54:20 -05:00
Ben Marsh
f38139ee3d Attempts to improve performance and robustness of GitDependencies.
- Now uses 4 threads by default
- Decompression is done on a separate thread
- Each download thread exists in a succeed or fail state, and program only fails once no progress is being made by any thread
- Uses HttpWebRequest/HttpWebResponse instead of WebClient

[CL 2353640 by Ben Marsh in Main branch]
2014-11-07 17:01:06 -05:00
Ben Marsh
ee4f4f1aef Remove files from the download queue if they have been tampered with.
[CL 2348828 by Ben Marsh in Main branch]
2014-11-04 14:51:50 -05:00
Ben Marsh
71cdb39d3f Better handling for corrupted manifest files, and allow continuing even if files have been tampered with.
[CL 2348802 by Ben Marsh in Main branch]
2014-11-04 14:37:01 -05:00
Ben Marsh
22a7bbc346 Allow GitDependencies to detect Mac correctly, and handle cases where files to download would already exist in the workspace.
[CL 2348698 by Ben Marsh in Main branch]
2014-11-04 13:32:02 -05:00
Ben Marsh
d984dac8d2 Make reported download speed less jitterry.
[CL 2348539 by Ben Marsh in Main branch]
2014-11-04 11:31:50 -05:00
Ben Marsh
5e0b64a707 Catch I/O exceptions if downloading fails: can be caused by web streams, not just file I/O. Also tidy up output a little.
[CL 2348491 by Ben Marsh in Main branch]
2014-11-04 11:21:05 -05:00
Ben Marsh
62f1038c10 Switch GitDependencies.exe to use the CDN. Also add a download speed stat, and a ctrl-c handler to prevent partial lines of output.
[CL 2348431 by Ben Marsh in Main branch]
2014-11-04 10:47:10 -05:00
Ben Marsh
3e32f9ee0b Support for retrying when a download fails, and aggregating multiple dependency files in the Build directory.
[CL 2345180 by Ben Marsh in Main branch]
2014-10-30 13:27:06 -04:00
Ben Marsh
c2a449e511 Read dependency manifest earlier so as to not pause for a long time before displaying an error.
[CL 2342659 by Ben Marsh in Main branch]
2014-10-28 15:23:28 -04:00
Ben Marsh
873f551808 Add program for downloading Git dependencies from S3.
[CL 2334829 by Ben Marsh in Main branch]
2014-10-20 15:39:39 -04:00