{
IScriptProject scriptProject = DLTKCore.create(project);
scriptProject.getResource().refreshLocal(IResource.DEPTH_INFINITE, null);
// validate that .buildpath xml is well formed and valid.
PluginResources resources = (PluginResources)
Services.getPluginResources(PluginResources.NAME);
List<Error> errors = XmlUtils.validateXml(
scriptProject.getProject().getName(),
BUILDPATH,
resources.getResource(BUILDPATH_XSD).toString());
if(errors.size() > 0){
return errors;
}
String dotbuildpath = scriptProject.getProject().getFile(BUILDPATH)