final Set<String> resources = new ResourceScanner(getServletContext(),
includes.split("[, ]"), excludes != null ? excludes.split("[, ]")
: new String[] {}).getResources();
final String options = getInitParameter("options");
final Task task = new Task();
task.setProcessor(processors);
task.setIn(resources.toArray(new String[resources.size()]));
task.setOut(new String[] { "output.js", "output.css" });
task.setOptionsDefinition(options);
final ProcessorFactory processorFactory = new JavaEEProcessorFactory();
try {
final VFS vfs = new VFS();
try {
vfs.mount(vfs.find("/"), new ServletFile(getServletContext(), "/"));