symbolic links on Windows

可紊 提交于 2019-12-23 04:48:16

问题


I try to create symbolic link on Windows (as 1st answer to Is there any way to integrate Eclipse with Gradle in Android project?)

On linux it is

ln -s src/main/res res
ln -s src/main/AndroidManifest.xml AndroidManifest.xml

Windows 7 has mklink util, but it just did not work on my PC.

I found a great Junction util and could do junction res src/main/res, but for link to file is created .lnk file (aka Windows shortcut).

I discovered that Git Bash can execute ln -s src/main/AndroidManifest.xml AndroidManifest.xml but it creates copy, not link.


回答1:


Use elevated-command-prompt

If error, check "SeCreateSymbolicLinkPrivilege", possibly turn off UAC.



来源:https://stackoverflow.com/questions/26081449/symbolic-links-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!