if nativeArtifactFile and target refer to the same file, skip copying nativeArtifactFile to target.