aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/native/windows_file_operations.h
Commit message (Collapse)AuthorAge
* Bazel client, JNI, Windows: impl. CreateJunction Gravatar Laszlo Csomor2017-02-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | Implement a CreateJunction function in the Windows JNI library. Also move a bit of code from file_windows to the JNI library, where it is (also) needed. This implementation is an improved version of `blaze_util::SymlinkDirectories` in blaze_util_windows: this version handles Windows paths as `name` and `target`, and performs more validation (e.g. on the length of `target`), plus has more comments explaining the logic. In a subsequent change I'll start using this new function in blaze_util_windows. This method will also be helpful in tests: we will no longer have to shell out to mklink. See https://github.com/bazelbuild/bazel/issues/2107 -- Change-Id: I7e9b085fdc2ba47be83da5319bded02bd323e71b Reviewed-on: https://cr.bazel.build/8892 PiperOrigin-RevId: 147585207 MOS_MIGRATED_REVID=147585207
* Windows JNI, refactor: move OpenDirectory to JNIGravatar Laszlo Csomor2017-02-14
| | | | | | | | | | | | Move the OpenDirectory helper method into the JNI library. We'll need it there; a subsequent change will make use of it there. See https://github.com/bazelbuild/bazel/issues/2107 -- PiperOrigin-RevId: 147448792 MOS_MIGRATED_REVID=147448792
* Windows, JNI, refactor: extract WinAPI callGravatar Laszlo Csomor2017-01-20
| | | | | | | | | | | | | | | | Extract a WinAPI call from the JNI method's body. In a subsequent change I'll move all JNI methods to a common location (windows_processes.cc) and that will be the only file dealing with JNI stuff. The rest of the windows_* sources will be exposed in the //src/main/native:windows_jni_util library so the Bazel client can also depend on it later. See https://github.com/bazelbuild/bazel/issues/2107 -- PiperOrigin-RevId: 145062890 MOS_MIGRATED_REVID=145062890
* Windows, JNI: expose IsJunctionOrDirectorySymlinkGravatar Laszlo Csomor2017-01-20
This is a simple refactoring, no change in functionality. Create a windows_file_operations.h file, declare windows_util::IsJunctionOrDirectorySymlink there, We will include this file in the cc_library //src/main/native:windows_jni_lib later and use it from the Bazel client. See https://github.com/bazelbuild/bazel/issues/2107 -- PiperOrigin-RevId: 145062164 MOS_MIGRATED_REVID=145062164