在 Eclipse/Flash Builder 中从编译中排除文件

发布于 2024-12-02 21:45:42 字数 317 浏览 1 评论 0原文

我正在将外部 ActionScript 库拉入我自己的库中。外部库(as3-commons)有一堆针对不同后端的日志记录适配器。如果我只是将该库链接到标准应用程序中,则不会有问题,因为如果未引用该类,则不会对其进行编译。

但是,如果该库被拉入 SWC,则 Flash Builder 将包含所有类,因此在尝试针对我没有代码的适配器进行编译时会出现链接错误。我可以禁用它,但是我必须手动包含从那时起的每个类。

那么,简而言之,有没有办法:

  1. 从本地拉取的外部 SVN 存储库中排除某些文件?
  2. 在 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:

  1. Exclude certain files from an external SVN repository form ever being pulled locally?
  2. Exclude a file from compilation in Eclipse?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

没有伤那来痛 2024-12-09 21:45:42

据我所知,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文