How can I provide a pseudo file system for r.js?
问题 Ok, so r.js can run on Rhino. Which is great. To do the stuff it needs to do. On rhino it basically uses java.io.File , java.io.FileOutputStream and java.io.FileInputStream to achieve the filesystem modifications that it needs to do. (Background: I am working on delivering a better development experience for Maven based Java/Javascript developers. Being Maven, there is the power of convention and the power of being opinionated. You can see the progress at jszip.org.) So what I want to do is