How to exclude a Javascript file from Javascript Validation in Eclipse

well, probably I’ve managed to do what you need 😉 It is a bit tricky. So my steps:

  1. downloaded Eclipse PDT (to be sure
    that it works for you, because I use
    Eclipse for Java EE)
  2. created project TestJS (it was
    JavaScript project)
  3. created two files, test.js and
    htmlparser.js (last one copied from
    John Resig’s site)
  4. typed “broken” script in both of them, so Eclipse told me that there were errors in both of them
  5. went to Project Properties >
    JavaScript > Include Path > Source
    ,
    there is “Excluded” to highlight and
    press “Edit” button, here you are
    able to add what you want to exclude
    (file, folder, pattern).
  6. I excluded “test.js” file, pressed
    apply…
  7. …and got a happy ending: now
    Eclipse point me out that there is
    error in htmlparser.js, but not in
    test.js 😉

ScreenShot:
enter image description here

Really hope that it helps!

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)