public static void build(IDestecsProject project)
{
try
{
DestecsModel model = project.getModel();
model.setScriptOk(true);
List<IFile> scenarios = project.getScenarioFiles();
for (IFile iFile : scenarios)
{
try
{
if (iFile.getName().endsWith(".script"))
{
FileUtility.deleteMarker(iFile, IMarker.PROBLEM, IDestecsCoreConstants.PLUGIN_ID);
if(ParserUtil.getScenario(project, iFile, errorHandler)==null)
{
model.setScriptOk(false);
}
} else if (iFile.getName().endsWith(".script2"))
{
FileUtility.deleteMarker(iFile, IMarker.PROBLEM, IDestecsCoreConstants.PLUGIN_ID);
if(ParserUtil.getScript(project, iFile, errorHandler)==null)
{
model.setScriptOk(false);
}
}
} catch (Exception e)
{
DestecsCorePlugin.log("Failure in script parser", e);