protected IClasspathEntry[] mergeWithBuildfile(
IJavaProject project, String buildfile)
throws Exception
{
String filename = FileUtils.getBaseName(buildfile);
Parser parser = PARSERS.get(filename);
String var = parser.getClasspathVar();
Dependency[] dependencies = parser.parse(buildfile);
IWorkspaceRoot root = project.getProject().getWorkspace().getRoot();
ArrayList<IClasspathEntry> results = new ArrayList<IClasspathEntry>();
// load the results with all the non library entries.