从 Aptana 验证器中排除特定文件或文件夹
因此,今天早上我已经安装了 Aptana for Eclipse,到目前为止,尝试禁用库文件验证已经花费了我整个上午的时间,但没有任何结果。
我已经看到以下相关线程:
对于 Aptana,这些答案实际上都没有帮助。例如,没有首选项-->验证选项卡。只有首选项 -->阿普塔纳 -->验证,您无法在其中添加排除规则。
我需要禁用许多库文件的验证,例如缩小的 jquery.js。
更糟糕的是,任何类型的错误似乎都使应用程序无法运行,因为它给我一个“您的项目包含错误,请在运行应用程序之前修复它们。”。
为什么像这样一个明显且强制性的任务(考虑到许多库都被缩小或根本没有严格验证)似乎无法完成?
So, I've installed Aptana for Eclipse this morning and so far trying to disable validation on library files has consumed my entire morning without any kind of result.
I've seen the following related threads:
- How to exclude specific folders or files from validation in Eclipse?
- Exclude directories & subdirectories from validation in Eclipse
With Aptana, none of these answers actually help. For example, there is no Preferences --> Validation tab. There is only Preferences --> Aptana --> Validation, where you cannot add exclusion rules.
I need to disable validation for numerous library files, such as a minified jquery.js.
Even worse, any kind of error seems to make it impossible to run the application as it gives me a "Your project contains errors, please fix them before running your application.".
How come an obvious and mandatory (considering that many libraries are minified or simply not strictly validated) task like this one seems to be impossible to accomplish?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎此功能在 Aptana 中仍然不可用(并且相关的错误单已经消失),但 Ingo Muschenetz 在这里提供了一种解决方法:
https://jira.appcelerator.org/browse/APSTUD-2131?focusedCommentId=195320
它适用于编码但未在 Aptana 中构建的项目。但是,由于您正在使用 ADT 处理 Android 项目,因此它可能会产生影响,也可能不会产生影响在你的构建上;我找不到有关“从索引中排除”实际作用的信息。
It seems like this feature is still not available in Aptana (and the associated bug ticket has vanished), but Ingo Muschenetz provided a workaround technique here:
https://jira.appcelerator.org/browse/APSTUD-2131?focusedCommentId=195320
It works for a project coded but not built within Aptana. However, since you're working on an Android project with ADT, it might or might not have an impact on your build; I couldn't find information on what this "Exclude from Index" actually does.