简体   繁体   English

从Aptana验证器中排除特定文件或文件夹

[英]Excluding specific files or folders from Aptana validators

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. 所以,我今天早上安装了Aptana for Eclipse,到目前为止,尝试禁用库文件验证已经消耗了整个早上没有任何结果。

I've seen the following related threads: 我见过以下相关主题:

With Aptana, none of these answers actually help. 有了Aptana,这些答案都没有实际帮助。 For example, there is no Preferences --> Validation tab. 例如,没有“首选项” - >“验证”选项卡。 There is only Preferences --> Aptana --> Validation, where you cannot add exclusion rules. 只有首选项 - > Aptana - >验证,您无法添加排除规则。

I need to disable validation for numerous library files, such as a minified jquery.js. 我需要禁用许多库文件的验证,例如缩小的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? 为什么一个明显的和强制性的(考虑到许多库被缩小或根本没有严格验证)这样的任务似乎是不可能完成的?

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: 似乎这个功能在Aptana中仍然没有(并且相关的错误票已经消失),但是Ingo Muschenetz在这里提供了一种解决方法:

https://jira.appcelerator.org/browse/APSTUD-2131?focusedCommentId=195320 https://jira.appcelerator.org/browse/APSTUD-2131?focusedCommentId=195320

This can currently be done using the following technique: 目前可以使用以下技术完成此操作:

  1. Right click on the file/folder 右键单击文件/文件夹
  2. Select "Build > Exclude from Index" 选择“构建>从索引中排除”
  3. Project > Clean > Selected Project 项目>清洁>选定项目

Once the build is completed, the validation warnings will be gone." 构建完成后,验证警告将消失。“

It works for a project coded but not built within Aptana. 它适用于编码但未在Aptana内构建的项目。 However, since you're working on an Android project with ADT, it might or might not have an impact on your build; 但是,由于您正在使用ADT处理Android项目,因此它可能会或可能不会对您的构建产生影响; I couldn't find information on what this "Exclude from Index" actually does. 我找不到关于这个“从索引中排除”实际上做了什么的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM