String forgeOutput = readForgeOutputAndClean();
String script = getBuildScriptResource().getContents();
Map<String, String> profileScripts = getProfileScripts();
GradleModel loadedModel = GradleModelLoadUtil.load(script, profileScripts, forgeOutput);
// Set resources for profiles
profileModels = Maps.newHashMap();
for (GradleProfile profile : loadedModel.getProfiles())
{
profileModels.put(profile.getName(), profile.getModel());
}
this.model = loadedModel;