在Windows上符号链接 [英] symbolic links on Windows
问题描述
我尝试在Windows中创建符号链接(如1回答<一个href=\"http://stackoverflow.com/questions/19912393/is-there-any-way-to-integrate-eclipse-with-gradle-in-android-project\">Is有什么办法可以使用的Eclipse在摇篮Android项目整合?)
I try to create symbolic link on Windows (as 1st answer to Is there any way to integrate Eclipse with Gradle in Android project?)
在Linux中,
ln -s src/main/res res
ln -s src/main/AndroidManifest.xml AndroidManifest.xml
Windows 7中有 MKLINK
UTIL ,但它只是没有在我的电脑上工作。
Windows 7 has mklink
util, but it just did not work on my PC.
我发现了一个伟大的结UTIL ,并可以做结资源的src / main / RES
,但链接文件创建.lnk文件(即Windows快捷方式)。
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).
我发现混帐击可以执行 LN -s的src / main / AndroidManifest AndroidManifest.xml中的.xml
,但它创建副本,而不是链接。
I discovered that Git Bash can execute ln -s src/main/AndroidManifest.xml AndroidManifest.xml
but it creates copy, not link.
推荐答案
使用的提升命令提示符
如果错误,请检查SeCreateSymbolicLinkPrivilege,可能是关闭UAC。
If error, check "SeCreateSymbolicLinkPrivilege", possibly turn off UAC.
这篇关于在Windows上符号链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!