有没有办法禁用所有这些符号链接到packages目录? [英] Is there a way to disable all those symlinks to the packages directory?
问题描述
我使用Dart Eclipse插件遵循本指南:
http://blog.dartwatch.com/2013/01/integrating-dart-into-eclipse-and-your.html
(没有Maven集成)
I am using the Dart Eclipse plugin following this guide: http://blog.dartwatch.com/2013/01/integrating-dart-into-eclipse-and-your.html ( without the Maven integration )
如果我使用pubspec.yaml文件,我的项目会被这些包符号链接垃圾邮件。
(我使用Eclipse的Package Explorer视图)
我想控制这些文件的创建位置。
If I use the pubspec.yaml file, my project gets spammed with these packages symlinks. ( I am using the "Package Explorer" view from Eclipse ) I would like some control over where these files get created.
推荐答案
我发现在dart中生成这些目录的代码, sdk \util\pub\entrypoint.dart。
I found the code that generates these directories in dart-sdk\util\pub\entrypoint.dart.
有一个方法叫做_linkSecondaryPackageDir。
There is a method called: _linkSecondaryPackageDir.
如果我添加:if(path.basename(dir)!='web')return;
If I add: if (path.basename(dir) != 'web') return;
packages文件夹只能在根文件夹和web文件夹
The packages folder only gets created in the root folder and the web folder, just like I want.
我将测试这是否会中断任何事情并回报。
I will test if this breaks anything and report back.
这篇关于有没有办法禁用所有这些符号链接到packages目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!