if (rebuild)
fullBuild(monitor);
}
private void fullBuild(IProgressMonitor monitor) {
final BaseLanguageRegistry languageReg = BaseLanguageRegistry.getInstance();
final LinkedList<BuildInput> resources = new LinkedList<BuildInput>();
try {
getProject().accept(new IResourceVisitor() {
Environment environment = SugarJParseController.makeProjectEnvironment(getProject());
@Override
public boolean visit(IResource resource) throws CoreException {
Path root = new AbsolutePath(getProject().getLocation().makeAbsolute().toString());
IPath relPath = resource.getFullPath().makeRelativeTo(getProject().getFullPath());
if (!relPath.isEmpty() &&
(environment.getParseBin().equals(new RelativePath(root, relPath.toString())) ||
environment.getIncludePath().contains(new RelativePath(root, relPath.toString()))))
return false;
if (languageReg.isRegistered(resource.getFileExtension())) {
String path = getProject().getLocation().makeAbsolute() + "/" + relPath;
final RelativePath sourceFile = ModuleSystemCommands.locateSourceFile(
path.toString(),
environment.getSourcePath());
if (sourceFile == null) {
// org.strategoxt.imp.runtime.Environment.logWarning("cannot locate source file for ressource " + resource.getFullPath());
return false;
}
resources.addFirst(new BuildInput(resource, sourceFile, languageReg.getBaseLanguage(resource.getFileExtension())));
}
return true;
}
});
} catch (CoreException e) {