开发者

SVN: library folders outside project tree - can this be handled with externals

I could not figure out an answer to a Question I am fighting with: Coding with LabVIEW, my projects are in a local tree like C:\projects\Thisproject... The libraries, however are (must be?) subfolders of labVIEW, like ...\LabVIEW\user.lib\mydriver... I would like to, for a given version of Thisproj开发者_开发技巧ect, also have checked out the respective versions for the libraries. I thought of externals, but the examples I have seen so far only showed relative pathes to the project path. Can anyone proove that and/or give me a hint on what to do?


External URLs can point to any valid SVN url, doesn't have to be relative at all.


Simply do the SVN checkout under the LabVIEW folder and work from there. Why does your SVN working copy have to be in c:\projects?


The pathes show that you are using windows. Therefore you may solve this problem by using directory links. Put the libraries inside your SVN repository and then create a symbolic link to the directory "mydriver" in your repository holding your libraries:

mklink /D C:\projects\Thisproject\mydriver C:\LabVIEW\user.lib\mydriver

This creates a linked directory C:\LabVIEW\user.lib\mydriver which is part of your SVN working copy and therefore automatically updated if you update your project.

Note: Mklink is a tools shipped with Windows Vista and newer. If you are on WIndows XP there are similar freeware tools which can create symbolic directory links.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜