context.processFiles(chunk, new FileProcessor() {
public boolean apply(final Module module, final File file, final String sourceRoot) throws Exception {
if (finalPatterns.isResourceFile(file, sourceRoot)) {
if (isFileDirty(file, context, tsStorage)) {
try {
context.processMessage(new ProgressMessage("Copying " + file.getPath()));
copyResource(context, module, file, sourceRoot);
}
catch (IOException e) {
context.processMessage(new CompilerMessage("Resource Compiler", BuildMessage.Kind.ERROR, e.getMessage(), FileUtil.toSystemIndependentName(file.getPath())));
return false;