commit | 664fc99e59d21bc7a0998e8d41f88bed953efb58 | [log] [tgz] |
---|---|---|
author | Simon Stewart <simons@fb.com> | Wed Aug 14 09:09:15 2013 -0700 |
committer | Michael Bolin <mbolin@fb.com> | Fri Aug 23 09:56:58 2013 -0700 |
tree | d5d77d6e9594bf7a97151b14e2f88e3b01126ea1 | |
parent | 64b274779d05d2d7a691af7d89406f7e3601f30c [diff] |
Second run at handling creation of symlinks on Windows. Summary: Creating symlinks on Windows is _hard_. Files.createLink only works on files, but it's possible for us to get given a directory to symlink. Handling this on XP requires escalated privileges and isn't recommend. With this diff we: * Create a symlink directly if we're not on Windows. * If we're on Windows and we're linking a file, create a link * Otherwise, recursively copy the directory. That last step means that linking to a directory will be very inefficient on Windows. Test Plan: buck test --all
Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.
To build Buck, run the following:
git clone git@github.com:facebook/buck.git cd buck ant ./bin/buck --help
Apache License 2.0