在 Eclipse/Flash Builder 中从编译中排除文件
我正在将外部 ActionScript 库拉入我自己的库中。外部库(as3-commons)有一堆针对不同后端的日志记录适配器。如果我只是将该库链接到标准应用程序中,则不会有问题,因为如果未引用该类,则不会对其进行编译。
但是,如果该库被拉入 SWC,则 Flash Builder 将包含所有类,因此在尝试针对我没有代码的适配器进行编译时会出现链接错误。我可以禁用它,但是我必须手动包含从那时起的每个类。
那么,简而言之,有没有办法:
- 从本地拉取的外部 SVN 存储库中排除某些文件?
- 在 Eclipse 中从编译中排除文件?
I'm pulling in an external ActionScript library into my own library. The external library (as3-commons) has a bunch of logging adapters to different backends. If I were just linking this library into a standard app, there wouldn't be a problem, because if the class isn't referred to, it won't be compiled.
However, if the library is pulled into a SWC, then Flash Builder will include all classes, and hence get linking erros as it tries to compile against adapters I don't have the code for. I can disable this, but then I have to manually include every class from that point on.
So, in short, is there a way to:
- Exclude certain files from an external SVN repository form ever being pulled locally?
- Exclude a file from compilation in Eclipse?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,compc 二进制文件允许完全包含库或根本不包含库。
由于我是该特定库(as3commons 日志记录)的开发人员,我只是优先考虑将核心与设置和集成分离。
As far as I know compc binary allows just to include a library completely or not at all.
As I am the developer of that particular library (as3commons logging) I just prioritized the separation of the core from setups and integrations.