scala-js/scala-js — pull request #1167 by oleastre (2014-10-15 09:13:02+00:00)
Title: Ignore classpath elements when it's neither JS, JAR or directory (probably file does not exists).

If I simply enable the sbt-web plugin in the scalajs-tutorial project, I get the following error:
```
java.lang.RuntimeException: /devel/scalajs-tutorial/target/web/classes/main (in classpath) is neither JS, JAR or directory
```

sbt-web adds `target/web/classes/main` to the sbt classpath; but does not creates that folder if it's not needed; and so there is an element in the classpath that's neither a js file, a jar or a directory because it simply does not exists.

I think the scalajs compiler should just ignore that kind of classpath element instead of reporting errors.

To solve the problem, I modified readEntriesInClasspathElement to return an Option, and made traverseClasspathElements igonre the 'None' case.