Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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?

like image 701
Tom Avatar asked Oct 09 '11 11:10

Tom


1 Answers

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

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. 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.

like image 54
Aveius Avatar answered Sep 20 '22 13:09

Aveius