Attempt to do a normal file link, but fall back to a copy if the link fails.
Source Code
# File rake.rb, line 928 def safe_ln(*args) unless LN_SUPPORTED[0] cp(*args) else begin ln(*args) rescue StandardError, NotImplementedError => ex LN_SUPPORTED[0] = false cp(*args) end end end
<code/>and<pre/>for code samples.