Skip to content
  1. Aug 29, 2016
  2. Aug 28, 2016
  3. Aug 27, 2016
  4. Aug 25, 2016
  5. Aug 24, 2016
  6. Aug 23, 2016
  7. Aug 22, 2016
    • dbroady1's avatar
      [JENKINS-29956] Test Windows junctions before Java 7 symlink (#1787) · f4edf917
      dbroady1 authored
      * Test Windows junctions before Java 7 symlink
      
      Apparently Java 7 (and later) do not count Windows junctions as
      symlinks.  When you drill down into the BasicFileAttributes structure,
      reparse points are only counted under isOther.  So, since we already
      have code that properly detects Windows Junctions, let's use that first
      and then fallback to the Java 7 code.
      
      * Add comment for change & link bug.
      
      * Add test case
      
      * Switch to Functions.isWindows().
      
      * Use non-deprecated APIs for tmp file/dir mgmt
      
      * Add better debugging.
      
      * Allow spaces in junction name & dir name.
      
      To do that, it was easier to use ProcessBuilder vs building up the correct
      string in code to send to cmd.exe.
      
      Also, I'll note that according to http://ss64.com/nt/syntax-internal.html,
      mklink is in internal cmd.exe command.  So, it must be invoked through
      "cmd.exe /c" for it to work.
      
      * Remove comment mentioning bug number.
      
      * Remove debugging output, per Baptiste's request
      
      * Add newline at end of file.
      
      * Make sure that the junction was removed.
      
      * Use assertEquals to show retcode of Process.waitFor.
      
      * Fix compilation errors by importing functions
      f4edf917
  8. Aug 21, 2016
  9. Aug 20, 2016
  10. Aug 19, 2016
  11. Aug 15, 2016
  12. Aug 14, 2016
  13. Aug 13, 2016
  14. Aug 12, 2016
Loading